Need a lower case URL rewrite just for specific folder
2 posts
• Page 1 of 1
Need a lower case URL rewrite just for specific folder
I'm trying to create a rule that will only rewrite to lower case for a specific URL path. The state and city is the condition that I need to rewrite to lower case.
examples:
https://www.mysite.com/locations/State/City/page.aspx --> rewrite to https://www.mysite.com/locations/state/city/page.aspx
https://www.mysite.com/locations/Texas/Dallas/75020_300.aspx --> rewrite to https://www.mysite.com/locations/texas/dallas/75020_300.aspx
https://www.mysite.com/locations/Illinois/Chicago/75010_300.aspx --> rewrite to https://www.mysite.com/locations/illinois/chicago/75010_300.aspx
I tried this but doesn't seem to work
RewriteRule ^locations/(.*[A-Z].*) locations/$1 [CL,R=301,L]
Any help would be appreciated.
examples:
https://www.mysite.com/locations/State/City/page.aspx --> rewrite to https://www.mysite.com/locations/state/city/page.aspx
https://www.mysite.com/locations/Texas/Dallas/75020_300.aspx --> rewrite to https://www.mysite.com/locations/texas/dallas/75020_300.aspx
https://www.mysite.com/locations/Illinois/Chicago/75010_300.aspx --> rewrite to https://www.mysite.com/locations/illinois/chicago/75010_300.aspx
I tried this but doesn't seem to work
RewriteRule ^locations/(.*[A-Z].*) locations/$1 [CL,R=301,L]
Any help would be appreciated.
Re: Need a lower case URL rewrite just for specific folder
Hello.
1. You are asking this question in the ISAPI_Rewrite 2 forum but discussing functionality that is only available from ISAPI_Rewrite 3. Please confirm which version of the product you are using.
2. Your rule is designed to work in the .htaccess file. Make sure you are not applying it in httpd.conf and RewriteEngone On directive is present.
1. You are asking this question in the ISAPI_Rewrite 2 forum but discussing functionality that is only available from ISAPI_Rewrite 3. Please confirm which version of the product you are using.
2. Your rule is designed to work in the .htaccess file. Make sure you are not applying it in httpd.conf and RewriteEngone On directive is present.
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests