Forum Moderators: phranque

Message Too Old, No Replies

Domain Redirect Question

         

nadsab

5:55 am on Apr 9, 2003 (gmt 0)

10+ Year Member



Hi,
I've got a virtual domain that I need to re direct to another domain. I'm running RH Linux 7.3 and Apache 1.3.27. From my apache httpd.conf, my Virtual Host tags for the domain I want to redirect are:

<VirtualHost 111.111.111.111>
ServerName www.dummydomain.com
DocumentRoot /home/dummydir/html
</VirtualHost>

<VirtualHost 111.111.111.111>
ServerName dummydomain.com
DocumentRoot /home/dummydir/html
</VirtualHost>

What command do I need to place in my virtual host tags to do this? Also do I need to place a command in the host tags of the other domain I want to re direct to? The domain I want to redirect to is not a virtual host, it is an IP based host.

Thanx.

eaden

6:17 am on Apr 9, 2003 (gmt 0)

10+ Year Member



put

RedirectPermanent / [newdomain.com...]

inside the <VirtualHost>

nadsab

5:19 am on Apr 10, 2003 (gmt 0)

10+ Year Member



Thanks Eaden,

That brings me to another question. I have two web sites, website.com and website.net Both are indexed on google.

website.com has lots of inbound links to it, website.net has none. website.com is just a front page, the client wanted both a .com and a .net address for his website name when I set up his site so no one would hijack his domain. However website.net is where the SSL certificate is installed in, is where the guys shopping cart is, so I can not move all of the .net material to the .com site for a long time.

I set up a re direct in apache using the RedirectPermanent tag in my apache httpd.conf, and now all the .com traffic gets seamlessly re directed to the .net address when people click on the .com address in the google index.

My question is:

Will all of the inbound links to the .com address now be counted for the .net address to determine PR for the .net address, or am I screwed and have to start all over asking inbound linked sites to change over to .net?