0

I am about to install Wordpress and I want to know if I have to redirect let's say url server.com to www.server.com if I want to have only one Wordpress installation.

I want users to be able to use both www.server.com and server.com It would be nice if the typed url won't change (from server.com to www.server.com) but it is not necessary.

3
  • WordPress does that redirection for you, if you have both the www and no-www going to the same site.
    – Otto
    Aug 18, 2012 at 14:06
  • @Otto: so I don't have to do anything? Nothing what is suggested in both answers?
    – Radek
    Aug 18, 2012 at 23:16
  • Yes, you probably don't have to do anything at all. I suggest trying it and seeing if its working properly before trying to fix a non-existent problem. :)
    – Otto
    Aug 19, 2012 at 12:32

2 Answers 2

0

This is something you can do with your DNS / Domain Name Host.

You choose in WordPress (WP-Admin > Settings > General ) if you want to use www.somename.com or just somename.com

enter image description here

If you login in to your Domain Name Host (I use 123-reg) then look for Manage DNS CNAME / A / TXT records

You can see on this screen I have an @ and www A Record which are both pointing to the same Destination IP Address.

enter image description here
The @ and the www A records are your www.somename.com or just somename.com

-1

Great answer by Damien.

If you were using a theme like Thesis, and some other themes also have this capability, you would be able to choose easily between the canonical url of www.yourdomain.com or http://yourdomain.com on the theme options.

1
  • This is incorrect, the canonical URL is a function of the WordPress core, it has nothing to do with what theme you are running.
    – Otto
    Aug 19, 2012 at 12:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.