tags:

views:

8

answers:

0

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?