Simple redirect

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 2
Joined: 30 Apr 2013, 11:26

Simple redirect

30 Apr 2013, 11:28

Hi

Looked over the forum but can not find anything

I just want a simple redirect from page.asp to page.html

Like about.asp to about_us.htm

Any help appreciated

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

Re: Simple redirect

30 Apr 2013, 13:48

Try using:

Code: Select all
[ISAPI_Rewrite]

RewriteRule /about\.asp /about_us.htm [I,RP]

Regards
Andrew

User avatar
Posts: 2
Joined: 30 Apr 2013, 11:26

Re: Simple redirect

30 Apr 2013, 14:01

Thanks

Is the rule the same for version Isapi Rewrite V3 ?

Looks like i asked in the wrong part of the forum. Apologies and thanks for the help

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

Re: Simple redirect

30 Apr 2013, 14:14

Yes, it's different.
In ISAPI_Rewrite 3 its:

Code: Select all
RewriteEngine on
RewriteBase /

RewriteRule ^about\.asp$ /about_page.htm [NC,R=301,L]

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 7 guests