how to implement one rewritecond for multiple rules
3 posts
• Page 1 of 1
how to implement one rewritecond for multiple rules
Hi Support.
I have two domains for a site. the one is for review. and another is for edit. we will use the short url for review site.
e.g.
RewriteCond %{HTTP:Host} ^www\.mydomain\.com$
RewriteRule ^contact-us.aspx$ contact-us [NC,R=301, L]
RewriteCond %{HTTP:Host} ^www\.mydomain\.com$
RewriteRule ^trademarks.aspx$ trademarks [NC,R=301, L]
RewriteRule ^contact-us$ contact-us.aspx [NC, L]
RewriteRule ^trademarks$ trademarks.aspx [NC, L]
Can I use one RewriteCond for multiple rules? because they are same.
Thanks,
Gan
I have two domains for a site. the one is for review. and another is for edit. we will use the short url for review site.
e.g.
RewriteCond %{HTTP:Host} ^www\.mydomain\.com$
RewriteRule ^contact-us.aspx$ contact-us [NC,R=301, L]
RewriteCond %{HTTP:Host} ^www\.mydomain\.com$
RewriteRule ^trademarks.aspx$ trademarks [NC,R=301, L]
RewriteRule ^contact-us$ contact-us.aspx [NC, L]
RewriteRule ^trademarks$ trademarks.aspx [NC, L]
Can I use one RewriteCond for multiple rules? because they are same.
Thanks,
Gan
Re: how to implement one rewritecond for multiple rules
Hello.
Duplicating my answer from ticketing system:
'S' or Skip flag is supported in both ISAPI_Rewrite 3 and Helicon Ape, so you can use the technic you are referencing on Stackoverflow: http://stackoverflow.com/questions/7218 ... n-htaccess
Duplicating my answer from ticketing system:
'S' or Skip flag is supported in both ISAPI_Rewrite 3 and Helicon Ape, so you can use the technic you are referencing on Stackoverflow: http://stackoverflow.com/questions/7218 ... n-htaccess
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 28 guests