Forum Moderators: phranque

Message Too Old, No Replies

changing to lowercase in httpd.conf?

         

TristanToxic

7:47 pm on Dec 30, 2006 (gmt 0)

10+ Year Member



I have a rewrite that rewrites "/something/" to "/cgi-bin/script?q=something"
now "/something/" works, as does "/Something/", and all other combinations
is there a way to redirect "/Something/" to the all lowercase "/something/" (and let it still do the rewrite in the background)? This is just to prevent duplicate content if people start to link to the same page using different case.

Thanks

TristanToxic

9:04 pm on Dec 30, 2006 (gmt 0)

10+ Year Member



Instead of doing the case check in httpd.conf I just added a few lines in the script to which is redirected to do the check there. I guess in my case that's the most convenient option.

jdMorgan

9:55 pm on Dec 30, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You can use a RewriteMap calling the operating system's "tolower" function. This is given as an example in the RewriteMap documentation.

Jim