Bypass a RewriteRule
2 posts
• Page 1 of 1
Bypass a RewriteRule
Hello
I have this line below that converts my cfm links to aspx links and I love it.
RewriteRule ^(.*)_(.*)\.cfm$ $1-$2.aspx [NC,R=301]
The problem is that I have these two links below that I want to keep as they are literally and not have them affected by the code above. Please help, here they are:
http://mysite.com/admin/tiresearch/Impo ... _Model.cfm
http://mysite.com/Admin/InventoryUpdate ... update.cfm
I want to keep these two links but I can't seem to figure out how to keep them from being affected from changing to aspx
Thanks,
I have this line below that converts my cfm links to aspx links and I love it.
RewriteRule ^(.*)_(.*)\.cfm$ $1-$2.aspx [NC,R=301]
The problem is that I have these two links below that I want to keep as they are literally and not have them affected by the code above. Please help, here they are:
http://mysite.com/admin/tiresearch/Impo ... _Model.cfm
http://mysite.com/Admin/InventoryUpdate ... update.cfm
I want to keep these two links but I can't seem to figure out how to keep them from being affected from changing to aspx
Thanks,
- HeliconAndrew
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: Bypass a RewriteRule
Hello,
The most direct solution would be the following:
Regards
Andrew
The most direct solution would be the following:
- Code: Select all
RewriteCond %{REQUEST_URI} !^/admin/tiresearch/Import_Year_Make_Model\.cfm$ [NC]
RewriteCond %{REQUEST_URI} !^/Admin/InventoryUpdate/inventory_update\.cfm$ [NC]
RewriteRule ^(.*)_(.*)\.cfm$ $1-$2.aspx [NC,R=301]
Regards
Andrew
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 5 guests