Add Dynamic rewrite conditional rule without map file
3 posts
• Page 1 of 1
Add Dynamic rewrite conditional rule without map file
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.
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.
Re: Add Dynamic rewrite conditional rule without map file
Please try to use the following rule:
RewriteBase /
RewriteRule ^[^.]*$ /5.aspx [NC,L]
RewriteBase /
RewriteRule ^[^.]*$ /5.aspx [NC,L]
Re: Add Dynamic rewrite conditional rule without map file
Thanks for your reply, Anton.
Its working for me.
Its working for me.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests