简体   繁体   中英

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.

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!

在此处输入图片说明

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

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');

PS it won't say domain, it'll have your domain there.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM