remove from the path name of the file default.asp to leave o

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 1
Joined: 22 May 2013, 05:36

remove from the path name of the file default.asp to leave o

22 May 2013, 05:48

Hello to all,
purchased the license and installed it on my windows server isapi rewrite the form of helicontech

I managed to create the rule that adds the www when the url does not contain it but I can not create this rule

I wish that when you point to the page "/products/default.asp"
the module automatically make us a 301 redirect to the folder without specifying the default.asp then only to "/products/"

I'm writing this, but it does not work
RewriteRule /products/default.asp /products/ [I,O,R=301,L]

What am I doing wrong?
Thanks in advance

User avatar
Posts: 1264
Joined: 07 Mar 2012, 10:16

Re: remove from the path name of the file default.asp to lea

22 May 2013, 15:33

Hello,

Please, try using:

Code: Select all
RewriteEngine on
RewriteBase /

RewriteRule ^products/default\.asp$ /products/ [NC,R=301,L]


Regards
Andrew

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 23 guests