Forum Moderators: phranque

Message Too Old, No Replies

2 domains, 1 hosting

         

sumedh

6:31 pm on Jan 14, 2007 (gmt 0)

10+ Year Member



I have a shared economy hosting with godaddy with one domain eg abc.com. I purchased
another domain eg xyz.info and i want to share my abc.com's hosting with the new one.
I want to redirect xyz.info to folder "info" in my root but it should be transparent to the user.

Currently abc.com and xyz.info point to the root directory.

I searched the forum and got this.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?xyz\.info [NC]
RewriteRule!^info/.*$ /info%{REQUEST_URI} [L]

When i uploaded the .htaccess and opened xyz.info it gives an internal server error. abc.com works fine though.

Btw does godaddy's economy hosting support this feature, if no then there is no point left.

jdMorgan

3:46 am on Jan 20, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Assuming that you've got a space after RewriteRule as shown below, then your code should have worked.

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?xyz\.info [NC]
RewriteRule !^info/.*$ /info%{REQUEST_URI} [L]

Check your server error log to find the cause of the server error. I don't know if GD supports mod_rewrite with your service level, though.

Jim