user2198809
user2198809

Reputation: 1

Wordpress Site Domain Issue

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

Answers (3)

Graham Walters
Graham Walters

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

Jorge Y. C. Rodriguez
Jorge Y. C. Rodriguez

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!

enter image description here

Upvotes: 1

anubhava
anubhava

Reputation: 785541

That is due to permalink setting in you Wordpress installation.

Make sure to change these 2 URLs in your permalink setting:

  1. Site URL
  2. Home URL

To make sure both of them start with http://www.xyz.com

Upvotes: 0

Related Questions