Forum Moderators: phranque

Message Too Old, No Replies

Redirecting non-www to www

         

lightheaded

6:01 pm on Dec 15, 2006 (gmt 0)

10+ Year Member



Hi,

I am renting a dedicated server running Apache with Plesk and my website by default exists both on [domain.com...] and [domain.com....]

I am trying to figure out a way to redirect [domain.com...] to [domain.com...] to try and avoid any duplicate content issues with search engines.

Please bear with me because I only have a limited understanding of apache, but what is the best way of doing this? - Is it best to use an .htaccess file or can it be done through the DNS?

At the moment in the DNS I have 2 ANAME records, one for domain.com and one for www.domain.com both pointing to the IP address for my server.

Any guidance would be appreciated..

jdMorgan

6:07 pm on Dec 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



A search using the thread title [google.com] is a good place to start. :)

This needs to be done on the server, since DNS is at the wrong "level" to do redirects.

Jim

lightheaded

8:34 pm on Dec 15, 2006 (gmt 0)

10+ Year Member



Thanks Jim