WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Should URLs be in camel case like hash tags?

for

From: Steve Green
Date: Nov 30, 2022 7:58AM


While it is correct that Unix and Linux webservers are case sensitive, in more than 20 years of website testing I don't ever recall seeing a 404 due to incorrect capitalisation of URLs. I did see one instance where different capitalisation resulted in entirely different page content.

Windows webservers are not case sensitive.

Steve Green
Managing Director
Test Partners Ltd


-----Original Message-----
From: WebAIM-Forum < <EMAIL REMOVED> > On Behalf Of Rowan @ Jetboy
Sent: 30 November 2022 14:47
To: <EMAIL REMOVED>
Subject: Re: [WebAIM] Should URLs be in camel case like hash tags?

Most web servers are case sensitive, so:

https://mywebsite.com/pageInCamelCase/

https://mywebsite.com/pageincamelcase/

would effectively be two distinct URLs. The first would return the page the user wanted. The second would 404. So any advantage in legibility would be offset by the requirement to get the capitalization right, for both the user and your developers. You could setup redirect rules, or allow duplicate pages to be served, but I'd advise not creating the problem in the first place and sticking with all lowercase, separated by hyphens (as Daniel advises).

On 30/11/2022 11:27, Barry via WebAIM-Forum wrote:
> I know the best practice with hash tags, but cannot find anything
> useful on whether or not to camel case URLs for a11y.
>
>
>
> Incidentally, is there a WCAG to support camel case hash tags?
>
>
>
> Thanks in anticipation.
>
>
>
> Cheers
>
>
>
> Barry
>
> > > archives at http://webaim.org/discussion/archives
>