Forum Moderators: phranque

Message Too Old, No Replies

redirect http to www

         

hOtTiGeR123

5:29 pm on Jul 7, 2008 (gmt 0)

10+ Year Member



Hi,

I'm sure this is pretty easy but I've tried Google and came up empty.

Basically all I want to do is have it so http://example.com redirects to http://www.example.com.

Any ideas how I would go about doing this?

Thanks

[edited by: jdMorgan at 6:20 pm (utc) on July 7, 2008]
[edit reason] Please use example.com [/edit]

jdMorgan

6:19 pm on Jul 7, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This subject had been discussed hundreds of times. Try searching this forum for "non-www www redirect canonical domain" and similar phrases. (A link to the WebmasterWorld search facility is at the top of every page here.)

Jim

g1smd

2:14 pm on Jul 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



I've posted the code several times per month for the last couple of years, often along with some enhancements for redirecting named index pages and so on.

Post your best effort code here if you fail to get this working.