Welcome Guest, Not a member yet? Register   Sign In
Make url case insensitive
#7

[eluser]aryan_[/eluser]
[quote author="mddd" date="1273848526"]In your server configuration file, use the following rules:

RewriteMap lowercase int:tolower
RewriteCond $1 [A-Z]
RewriteRule ^/(.*)$ /${lowercase:$1} [R=301,L]

This will not work in your .htaccess file, as the rewritemap command is only availble in apache-level or host-level configuration.
Not in directory level such as .htaccess.

It basically defines a translation map 'lowercase' to use Apaches function to make things lowercase.
The rule then applies this zo any uri that has uppercase letters in it.[/quote]

But I can't access my host config file! Any alternative?


Messages In This Thread
Make url case insensitive - by El Forum - 05-14-2010, 02:21 AM
Make url case insensitive - by El Forum - 05-14-2010, 02:41 AM
Make url case insensitive - by El Forum - 05-14-2010, 03:00 AM
Make url case insensitive - by El Forum - 05-14-2010, 03:09 AM
Make url case insensitive - by El Forum - 05-14-2010, 03:41 AM
Make url case insensitive - by El Forum - 05-14-2010, 03:48 AM
Make url case insensitive - by El Forum - 05-14-2010, 04:03 AM
Make url case insensitive - by El Forum - 05-14-2010, 04:33 AM
Make url case insensitive - by El Forum - 05-14-2010, 05:00 AM
Make url case insensitive - by El Forum - 05-14-2010, 05:05 AM



Theme © iAndrew 2016 - Forum software by © MyBB