domain2.com/subfolder rewriting to show domain1.com?

Using a single web hosting account to host multiple sites

Postby mythos » Mon Nov 10, 2008 2:31 pm

richardk wrote:Which URL were you accessing? What path should it have gone to?


I was trying to access www.site2.com, which should have mapped to www.site1.com/subject-2

But instead got the Forbidden error...
mythos
 
Posts: 3
Joined: Sat Nov 08, 2008 6:04 am

Postby richardk » Mon Nov 10, 2008 3:02 pm

Try replacing
Code: Select all
  RewriteCond %{SCRIPT_FILENAME} !-d

with
Code: Select all
  RewriteCond %{REQUEST_URI} ^/$ [OR]
  RewriteCond %{SCRIPT_FILENAME} !-d
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Previous

Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 25 guests

cron