Domain alias help

Using a single web hosting account to host multiple sites

Domain alias help

Postby funnel » Sat Oct 07, 2006 2:47 pm

Hi there

I have a host with a domain www.domain1.com under a subdir www.domain1.com/dir/ I have a php script with mysql database and this work fine, Now I have got a new domain, a domain alias pointing to www.domain1.com/dir/index.php but when I type this new domain alias in to my browser www.domain2.com I do get the index.php file but it look strange and if I click some other link on that site I get a 500 Internal Server Error, how do I set up htaccess so it www.domain2.com can run the php script on www.domain1.com/dir/
funnel
 
Posts: 5
Joined: Sat Oct 07, 2006 2:38 pm

Postby richardk » Sat Oct 07, 2006 3:37 pm

Are you surrently using mod_rewrite? If you are show the mod_rewrite. If you're not, ask your host about it, i'm sure they can sort out the problem.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby funnel » Sat Oct 07, 2006 3:39 pm

I have this in www.domain1.com/dir/

<IfModule mod_php4.c>
php_value session.use_only_cookies 1
php_value session.use_trans_sid 0
</IfModule>

<IfModule mod_rewrite.c>
Options +FollowSymLinks

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

RewriteRule .* index.php [QSA,L]
</IfModule>
funnel
 
Posts: 5
Joined: Sat Oct 07, 2006 2:38 pm

Postby richardk » Sat Oct 07, 2006 3:42 pm

Edit:

Try:
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule !^index\.php$ index.php [QSA,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby funnel » Mon Oct 09, 2006 9:42 pm

Thanks :wink:
funnel
 
Posts: 5
Joined: Sat Oct 07, 2006 2:38 pm


Return to Domain Handling

Who is online

Users browsing this forum: No registered users and 33 guests

cron