I have been experiencing a problem yesterday. My site is in Hebrew language. MY site is built on Wordpress. The problem is related to escaped encoded posts URL only. IF the post URL has escaped encode in uppercase it works, if in lowercase, it returns 404. I want both to pass without a problem. I am hosting my site on godaddy shared hosting. Is there any option to let both uppercase and lowercase be accepted and show the same post?
For example: http://domain.com/%d7%9e%d7%a6%d7%9c%d7%9e%d7%95%d7%aa/ (this is what my site have)
Google crawled it as: http://domain.com/%D7%9E%D7%a6%D7%9C%D7%9E%D7%95%D7%AA/ (this returned 404)
I think that in the mod_rewrite (htaccess) I should make the URL transfered to wordpress as a non-case sensitive. How can I do that?
Based on your example URL, you want URLs escaped in lowercase, If you have control over your server or virtual host, you can define a tolower map and use it in your rewrite rules as below:
You can also complete and use the following code in yout htaccess:
If you don't have control over server , you can also use a wordpress redirection plugin to convert all incoming URLs to lowercase. ( s/[A-Z]/\l&/g )
http://wordpress.org/extend/plugins/permalowercase301/
Another solution is to change your 404 error page to detect such links and redirecting them.
http://www.unfocus.com/2007/08/31/case-insensitive-permalinks-plugin-for-wordpress/