core icon indicating copy to clipboard operation
core copied to clipboard

Directory redirects need to be 301, not 302

Open wezell opened this issue 11 years ago • 2 comments

We need to change the redirects we use when a visitor hits a directory without the trailing slash to return a 301 redirect, not a 302. 302s are not seo friendly.

cabbage:~ will$ curl --head http://localhost:8080/about-us
HTTP/1.1 302 Found
Server: Apache-Coyote/1.1
Set-Cookie: JSESSIONID=B1E1AD9DA46A0AC5767B19DD9563F1A9; Path=/; HttpOnly
Location: http://localhost:8080/about-us/

wezell avatar Feb 23 '15 20:02 wezell

Fixed, Tested on nightly build 2015-02-27 // Postgres // FF

bryanboza avatar Mar 02 '15 17:03 bryanboza

Added TC http://qa.dotcms.com/index.php?/cases/view/59167

shaydotcms avatar Jun 16 '15 15:06 shaydotcms