| Posted: 25 February 2010 at 11:30am | IP Logged
|
|
|
Hi there,
We're using ISAPI Rewrite 2 in a hosted environment. There are number of sites that operate on it all of which use website/code in corresponding folders in the root. We've directed traffic to the relevant folder as follows:
RewriteCond Host: site1\.ourdomain\.com RewriteRule (.*) /site1$1 [L]
RewriteCond Host: site2\.ourdomain\.com RewriteRule (.*) /site2$1 [L]
The 3rd site however needs SEO URLs and the code sits in a third folder just as the two above but we can't figure out how to combine the SEO rules with the folder rules. So for example, we'd like to write a rule that rewrites site3.ourdomain.com/contact-us/ to site3.ourdomain.com/index.php?page=contact-us in conjunction with the rule below but nothing seems to work! No doubt due to lack of experience with this. Any help would be greatly appreciated!
RewriteCond Host: site3\.ourdomain\.com RewriteRule (.*) /site3$1 [L]
|