Forum Moderators: open

Message Too Old, No Replies

CAPS in URLs

does it cause problems

         

HelenDev

9:30 am on Jun 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I know it's probably not ideal to have capital letters in your URLs but does it cause them not to work in any situations?

sonjay

11:12 am on Jun 23, 2004 (gmt 0)

10+ Year Member



Unix servers are case-sensitive -- so if you use filenames or pathnames like "/MyDirectory/MyFile.html" then if people use "/mydirectory/myfile.html" it won't work. So you have to be very specific about capital letters when giving someone a full domain+path+filename.

I think there's some special module you can install and use in Apache (similar to a mod_rewrite) that causes Apache to not care about case sensitivity.

The actual domain name is case-insensitive on any machine: example.com = EXAMPLE.COM = ExAmPlE.COM

Span

11:25 am on Jun 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



mod_speling maybe:
[httpd.apache.org ]
But I think it's best to use only lower-case.

HelenDev

12:31 pm on Jun 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



But I think it's best to use only lower-case.

I will change it. Thanks for the replies guys :)

DrDoc

3:04 pm on Jun 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Interestingly enough -- all domain names are in ALL CAPS in the root servers ;)

ergophobe

4:37 pm on Jun 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



But domain names and email addresses are case-insensitive.

Only the parts that reference the local file system matter.

A reason that comes to mind to use mixed case for a domain name is so that it is easier to read when it is written out visibly for the user

<a href="http://mydomainisgreat.com/">http://MyDomainIsGreat.com/</a>

Reasons that come to mind not to mix case on the domain name are
- it's easier if everything is one case (preferably lower) in your file system and file names and it's easier still if you just stick to that for domain names too.

- you will get better compression if everything is the same case and you use compression.

Tom

DrDoc

4:41 pm on Jun 23, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



you will get better compression if everything is the same case and you use compression
Huh? What does that have to do with compression?