I am using Wordpress to create my website. How can I make my site accessible as both domainname.com and www.domainname.com?

Category: Wordpress

2013-07-02 8:18 pm EST

Hits: 996

You must login before you can ask a follow up question.

You must login before you can submit an answer.



21,599 Points
2013-07-02 9:19 pm EST
Hello Lynrob,

Thanks for your question! This is a fairly common question as people often believe that the WWW is a preferable way to state the URL. Depending on who you ask these days, the answer can actually go either way.

However, by DEFAULT, the server is set to already understand the domain name as eitheer www.domainname.com or just domain name.com (the www is set to be a CNAME which is an alias that automatically points to the domain name).

However, if you wish to FORCE one or the other to appear when the domain is displayed in the browser, then you will need to make a change in the .htaccess file of your site. Check out this article on forcing it using the .htaccess file: Force WWW in >htaccess.

I hope this helps to clarify the question. If you require further assistance or have any further questions, then please let us know.

Kindest regards,
Arnel C.

You must login before you can post a comment about this answer.

Thanks Arn! That is exactly what I needed to know!
8 Points
2013-07-02 11:51 pm EST
Like this Question?

Support Center Login

Social Media Login

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!