chris
chris

Reputation: 971

Webpage url without www not resolving

Trying to work with our domain provider to fix the issue where if you leave off the 'www.' from the url it does not redirect to website

no www in url - doesnt load

www in url - website loads

Is there something specifically i need to tell our domain provider to do? They have come back saying all settings are correct on their end, and i can see the page without the www loads fine on my mobile device - just not on anyones work pcs in the office.

Any help appreciated.

Regards, Chris

Upvotes: 0

Views: 381

Answers (1)

sourabh
sourabh

Reputation: 152

May be something wrong with your .htaccess file so replace the following code in .htaccess file:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]

Note: If you are using wordpress then it will work fine.

Upvotes: 1

Related Questions