How to change letters in namespace and make it case sensitive.
Hi, I want the site map should take capital ,small letters, special character in it and display it accordingly in site map, how do i can change its namespace. please tell, I want respond immediately.
On Linux server's all folder and file names are case-sensitive after the domain name. So for instance trying to access:
Will pull up the same page. However if you change the case of the file or folder such as:
This would try to pull up a completely different file with a capital T in the filename by default.
It is not recommended to make your files case sensitive due to search engines and possible duplicate content, as they could index Test.htm, TEst.htm, TESt.htm etc... and believe that each page should be a separate entity. Also if your scripts are looking for a particular case of a file and you're forcing the server to be non case sensitive this could also lead to unexpected issues.
If you really wanted to go ahead and allow for any case to be type in for your file names, then if you have root access to your server, you can modify the Apache configuration for your site and add these rules to the <VirtualHost> entry for your domain:
RewriteMap tolowercase int:tolower
Otherwise you'd need to implement these set of rules in your .htaccess file, and again while this works, it would not be recommended over simply choosing a consistent naming scheme and then sticking with all folders/files either being all lower case or not:
This would go through each individual letter in a folder/file request one by one and check if it's capital or not, and then proceed to the next letter. Again this is not as efficient as simply planning out the correct consistent case to use from the beginning.
Please let us know if you have any other questions at all.
Like this Question? Tweet
Publishing Your Frontpage Website with FTP
The death of FrontPage Extensions
How to Remove FrontPage Extensions in Cpanel
How do I install Frontpage extensions in my control panel (cpanel)?