This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Excluding < characters from redirect
Author
Message |
Scrooby
Newbie


Joined: 16 September 2010
Posts: 1
Posted: 16 September 2010 at 11:00am

I've got a redirect rule like below:

RewriteRule ^/blog/(.*)$ /blog/index.aspx [I,L]

This redirects everything from /blog/ to my /blog/index.aspx page, simple enough.

What I need to do now is exclude < and > characters from the rule. Currently if you try and go to /blog/< it says "This page is not redirecting properly".

I've tried several different rules to try and resolve the issue:

RewriteRule ^/blog/(.[^<]*)$ /blog/index.aspx [I,L]

RewriteRule ^/blog/(.[^\<]*)$ /blog/index.aspx [I,L]

RewriteRule ^/blog/([<]+)$ /blog/index.aspx [I,L]

But nothing seems to work. Can anyone shed some light on my dilema and whether it's actually possible to do what I'm trying?

Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 17 September 2010 at 1:54am

Please try to fix your rule like this:

RewriteRule /blog/([^<>]*) /blog/index.aspx [I,L]

__________________
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
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum