Add Dynamic rewrite conditional rule without map file

ISAPI_Rewrite is Apache mod_rewrite compatible URL rewriter for Microsoft IIS
User avatar
Posts: 2
Joined: 06 Nov 2013, 02:49

Add Dynamic rewrite conditional rule without map file

06 Nov 2013, 02:59

I want to write rewrite conditional rule like

http://www.domain.com/<anything-here> -- 5.aspx

but in above pattern i want only specific condition work like string format without extension will only execute this rule

http://www.domain.com/abc or http://www.domain.com/878 =============> (Condition 1) It will execute above rule

http://www.domain.com/abc.aspx or http://www.domain.com/abc.css ==========> (Condition 2) Above rule not work

But now it will work for above both condition. I want to work this rule only for first condition.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Add Dynamic rewrite conditional rule without map file

06 Nov 2013, 06:04

Please try to use the following rule:

RewriteBase /
RewriteRule ^[^.]*$ /5.aspx [NC,L]

User avatar
Posts: 2
Joined: 06 Nov 2013, 02:49

Re: Add Dynamic rewrite conditional rule without map file

06 Nov 2013, 09:56

Thanks for your reply, Anton.

Its working for me. :P

Return to ISAPI_Rewrite 3.0

Who is online

Users browsing this forum: No registered users and 8 guests