Need a lower case URL rewrite just for specific folder

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 1
Joined: 30 Aug 2017, 14:23

Need a lower case URL rewrite just for specific folder

22 Oct 2017, 12:54

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.

User avatar
Posts: 402
Joined: 06 Mar 2012, 11:59

Re: Need a lower case URL rewrite just for specific folder

06 Dec 2017, 02:19

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.

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 2 guests