WordPress.org

Ready to get started?Download WordPress

Forums

www. on domain name (3 posts)

  1. mikecicc
    Member
    Posted 6 years ago #

    On all of my WordPress installs when I initially set them up, I use http://www.EXAMPLE.com and not just EXAMPLE.com.. This way when you go to EXAMPLE.com with no "www." your address bar is automatically redirected to http://www.EXAMPLE.com

    For some reason this domain: raceforaseat.com is not redirecting and adding the www. infront of the domain, and its causing problems with google analytics, apparently google sees http://www.raceforaseat.com and raceforaseat.com as two difference web sites.

    i've checked both fields in the wp_options table ('site_url' and 'home') and they both have the value of "http://www.raceforaseat.com"

    any ideas why this domain is giving me grief ?

    anything I can do in an .htaccess file maybe?

    Thanks in advance.

  2. kgagne
    Member
    Posted 6 years ago #

    If you navigate to example.com/wp-admin/options-general.php and both your WordPress and Blog addresses have www. in them, I don't know why this problem should be occurring. But as an alternative, you can always try this plugin:

    http://wordpress.org/extend/plugins/enforce-www-preference/

  3. mikecicc
    Member
    Posted 6 years ago #

    the pluggin worked perfectly, thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic