Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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.

share|improve this question
    
WordPress does that redirection for you, if you have both the www and no-www going to the same site. –  Otto Aug 18 '12 at 14:06
    
@Otto: so I don't have to do anything? Nothing what is suggested in both answers? –  Radek Aug 18 '12 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 '12 at 12:32
add comment

2 Answers 2

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

share|improve this answer
add comment

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.

share|improve this answer
    
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 '12 at 12:33
    
@Otto - Thank you for correcting me. –  João Paulo Aug 20 '12 at 17:48
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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