warrentang
Member
Posted 1 year ago #
How can I add www to the URL (v3.1.2)? For example if the user types in xyz.com in the browser and hit "go", he/she should be redirected to www.xyz.com.
I used v3.1 before and it just works (or I forgot how I did it). I have tried SEO Ultimate and Redirection plug-ins but none worked.
Do you have the "www." included in WordPress address URL & Site address URL under general settings?
warrentang
Member
Posted 1 year ago #
yes, I added the following lines in wp_config.php:
define('WP_HOME', 'http://www.xyz.com');
define('WP_SITEURL', 'http://www.xyz.com');
I should mention that my server does not support .htaccess file.
warrentang
Member
Posted 1 year ago #
Shouldn't WordPress do that automatically?