Reputation: 1
I have a site www.xyz.com
. when i typed www.xyz.com
in the address bar of the browser it is getting redirected to xyz.com
without www
.
I even tried to redirect the domain url to www.xyz.com
in .htaccess
file. but it is generating an error as indefinite loop.
Please help me to resolve this issue.
Upvotes: 0
Views: 63
Reputation: 2064
There are two places to check, first log into the wordpress install and go to general settings, and change the following entries:
WordPress Address (URL)
Site Address (URL)
If the textboxs are grey, then SFTP into your server and edit the wp-config.php
file. Look for the following lines in it, and add www.
in front of the domain.
define('WP_HOME', 'http://domain.com');
define('WP_SITEURL', 'http://domain.com');
P.S. it won't say domain, it'll have your domain there.
Upvotes: 0
Reputation: 3449
That is really easy to fix, just go to the admin part, in settings/general and add www to the site and home url's name!
Upvotes: 1
Reputation: 785541
That is due to permalink setting in you Wordpress installation.
Make sure to change these 2 URLs in your permalink setting:
To make sure both of them start with http://www.xyz.com
Upvotes: 0