magnified-joy / magnifiedjoy.com

http:/www.magnifiedjoy.com
0 stars 1 forks source link

case sensitivity for URL #42

Open magnifiedjoy opened 10 years ago

magnifiedjoy commented 10 years ago

Is this normally the case? I would prefer URL to be not case sensitive.

ie: magnifiedjoy.com/kickstarter = magnifiedjoy.com/Kickstarter (rather than a 404)

matt-cook commented 10 years ago

Technically, URLs are supposed case sensitive: http://www.w3.org/TR/WD-html40-970708/htmlweb.html

Many servers (especially Windows-based) don't follow that spec closely or are modified to allow it. Github does follow this spec, so /kickstarter and /Kickstarter are considered different pages. To avoid a duplicate-content SEO penalty you wouldn't want to serve the same content on two pages with different URL (afaik Google bots ARE case sensitive), so the server is generally configured to redirect other cases to lowercase to work around this specification.

It's not exactly the same automatic case-insensitive redirects, but you can add specific redirects in Jekyll/Gihub using "redirect_from" I've added an example: https://raw.githubusercontent.com/magnified-joy/magnifiedjoy.com/gh-pages/kickstarter.markdown

So http://www.magnfiedjoy.com/Kickstarter/ and http://www.magnfiedjoy.com/kickstarter-launch/ both redirect to http://www.magnifiedjoy.com/kickstarter

If we want to do more advanced server-side stuff we'll need to switch servers. Probably not worth it unless there are additional needs.

On Tue, Oct 28, 2014 at 8:20 AM, magnifiedjoy notifications@github.com wrote:

Is this normally the case? I would prefer URL to be not case sensitive.

ie: magnifiedjoy.com/kickstarter = magnifiedjoy.com/Kickstarter (rather than a 404)

— Reply to this email directly or view it on GitHub https://github.com/magnified-joy/magnifiedjoy.com/issues/42.