PDA

View Full Version : using httpd.conf to redirect a domain


chrispadfield
Fri 8th Jun '01, 11:50am
I am trying to move a domain of my server somewhere else. At the moment i am virtual hosting it:


<VirtualHost 64.29.16.179>
<Directory /home/scifibanners/www/serversecure>
Options +ExecCGI +FollowSymLinks
AllowOverride All
</Directory>
ServerAdmin webmaster@scifibanners.com
DocumentRoot /home/scifibanners/www
ServerName scifibanners.com
ServerAlias www.scifibanners.com
ScriptAlias /cgi-bin/ /home/scifibanners/www/cgi-bin/


but the new place it is at, it has its own unique ip address. While waiting for the dns entries to update, can i change this virtualhost code to send it off to the new place?

thanks.

eva2000
Fri 8th Jun '01, 12:26pm
have you tried just changing the ip 64.29.16.179 to the new one ?

or using .htaccess file in the root directory of the old location and put

Redirect / http://newipaddress.com/

eva2000
Fri 8th Jun '01, 12:27pm
btw, forgot to mention the .htaccess method works for ascifi.com redirect to the /forum/index.php page too ;)

chrispadfield
Fri 8th Jun '01, 12:30pm
cool, thanks.

one day i will have an index.php with content on it :)