Click to See Complete Forum and Search --> : Forcing uppercase letters in domain names


koiphish
04-20-2008, 05:08 AM
I want to force uppercase letters in my domain name. I think it is possible with mod_rewrite but I can't find anything on it.

Example:

This is what you get normally: www.domainname.com

This is what i want it to rewrite to: www.DomainName.com

Any ideas?

ray326
04-20-2008, 01:05 PM
I'm not sure at all you can manipulate what the browser decides to put in the location once it's resolved the name.

felgall
04-20-2008, 02:38 PM
domain names are not case sensitive so you can't force a specific case.

WebJoel
04-20-2008, 05:39 PM
domain names are not case sensitive so you can't force a specific case. And that totally makes sence when one thinks about it... nobody would want "microsoft(dot)com" competing against "MicroSoft(dot)Com", "MiCrOsOfT(dot)cOm" etc etc and the thousand+ variations of this naming convention to exist... :(ne is more than enough..

koiphish
04-20-2008, 05:46 PM
You should be able to with mod_rewrite though. If you can rewrite url links for SEO purposes then making mod_rewrite reload the domain name how you want shouldn't be an issue.

like forcing loading of www. on domain names via mod_rewrite.

felgall
04-20-2008, 09:18 PM
The problem with trying to mod rewrite though would be that doing so would set up an infinite loop since the result you want matches the pattern you are testing for to change so it would change it to the uppercase version you want which matches the pattern to change it to the uppercase version you want which matches the pattern to change it to the uppercase version you want which matches the pattern to change it to the uppercase version you want which matches the pattern to .....

koiphish
04-20-2008, 09:27 PM
Ahh... mod rewrite can't tell the difference between a lowercase letter and an uppercase letter.. causing it to just loop infinitely. I get it.

I guess I could just setup the links in wordpress to use the uppercases when it loads links instead of trying to force it via mod rewrite.

Cool, thanks.

felgall
04-21-2008, 03:00 PM
A mod rewrite should be able to tell the difference between lowercase and uppercase for everything except the domain name because it is only the domain name itself that is not case sensitive. So it would work for paths and filenames, just not for the domain name itself.