Forums

Force www in URL (4 posts)

  1. 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.

  2. cubecolour
    ɹoʇɐɹǝpoɯ
    Posted 1 year ago #

    Do you have the "www." included in WordPress address URL & Site address URL under general settings?

  3. 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.

  4. warrentang
    Member
    Posted 1 year ago #

    Shouldn't WordPress do that automatically?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags