Simple question about two urls and one location

Using a single web hosting account to host multiple sites

Simple question about two urls and one location

Postby marcelloma » Mon Nov 09, 2009 1:58 pm

I have the following
www.site1.com
www.site2.com

both sites point to the same files, what I have to do is create blocks of different rules for the two sites, but, should I always do
Code: Select all
RewriteCond %{HTTP_HOST} .site1...
RewriteRule
RewriteCond %{HTTP_HOST} ..site1..
RewriteRule
RewriteCond %{HTTP_HOST} ..site1..
RewriteRule


RewriteCond %{HTTP_HOST} ..site2..
RewriteRule
RewriteCond %{HTTP_HOST} ..site2..
RewriteRule



Or is it possible to create BLOCKS of RewriteCond or any other solution?
marcelloma
 
Posts: 9
Joined: Sat Sep 12, 2009 4:14 am

Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 24 guests

cron