This forum has been moved here:
Helicon Tech Community Forum

ISAPI_Rewrite 3.0 (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 3.0
Subject Topic: third level page rewrite rule
Author
Message |
FairweatherWeb
Newbie


Joined: 16 November 2008
Location: United Kingdom
Posts: 22
Posted: 24 October 2011 at 5:40pm

Andrew kindly provided me withthis first and second level page rewrite rule
Code:
# rewrite for the first and second level pages to index.asp
RewriteEngine on
RewriteBase /
RewriteRule ^[^/]+/[^/]+$ /index.asp [NC,L]


...I have tried to change it to rewrite third level pages too but without success. Can anyone suggest a corrcetion.

And can you point me to the point in the documentation that discusses it? If I search for [^/] nothing matches!

Kevin


__________________
Regards
Kevin Russell
Fairweather Web LTD
Back to Top Visit FairweatherWeb's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 25 October 2011 at 3:33am

I believe the rule for the third level will be:

RewriteRule ^[^/]+/[^/]+/[^/]+$ /index.asp [NC,L]

All the syntax rules are given here: http://www.helicontech.com/isapi_rewrite/doc/regex.htm

__________________
Regards,
Anton
Back to Top
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version