This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: redirect url to lowercase
Author
Message |
rangaroykoduru
Newbie


Joined: 26 August 2011
Posts: 2
Posted: 26 August 2011 at 10:27am

Need help..
I want to redirect all url's before query string to lowercase and leave the url as it is after query string

for example I want to redirect following url

http://www.exaMPLE.com/FOO/bAr.aspx?foo=FOo&bar=BaR

to

http://www.example.com/foo/bar.aspx?foo=FOo&bar=BaR
Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 29 August 2011 at 3:38am

HEllo,

Please, try using the following:

RewriteRule (.*) $1 [CL,QSA,R=301,L]

Regards
Andrew
Back to Top
 
rangaroykoduru
Newbie


Joined: 26 August 2011
Posts: 2
Posted: 31 August 2011 at 10:01am

Hi Andrew,


Thanks for your reply..
It is not working...
I am using ISAPI 3.0.

Even I tried this

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

this rewrite is converting everything to lowercase including query strings..


Back to Top
 
Guests
Guest


Joined: 01 October 2003
Online Status: Online
Posts: -160
Posted: 01 September 2011 at 4:11am

Try this one instead:

RewriteRule (.*) \L$1\E [QSA,R=301,L]
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version