Forum Moderators: mack

Message Too Old, No Replies

Mod Rewrite and internal redirection issue.

I have two domains on the same server one below the other.

         

mahoogle

4:48 am on Oct 10, 2005 (gmt 0)

10+ Year Member



I have my main account and another domain that points one directory down. I set up my main account (top level directory) with the following code to redirect all traffic from example.com to www.example.com. The problem is my other domain is then changed from www.otherdomain.com to www.example.com/otherdomain.

Is there away to turn off the main htaccess mod rewrite instructions for my domain one directory down?

RewriteEngine On
RewriteCond %{HTTP_HOST} ^example.com
RewriteRule (.*) http://www.example.com/$1 [R=301,L]

mack

2:04 pm on Oct 10, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



I may have read this wrong. But have you placed that code at the same level as your domain folders. If so move it into one of the folders, so your .htaccess only refers to the one specific domain.

Mack.

mahoogle

4:05 pm on Oct 10, 2005 (gmt 0)

10+ Year Member



The one domain sits /www and the other is /www/otherdomain so I need the htaccess file of /www to ignore /www/otherdomain.