• Christine

    (@christinepiela)


    I just transferred my site from Wix to Bluehost. I then installed WordPress. Whenever I try to access my site, it always adds an extra www. Example: I type “mysite.com” or “www.mysite.com” and it automatically goes to “www.www.mysite.com” and won’t let me take it out of the hyperlink. Any ideas? I’ve already tried support from BlueHost and they couldn’t get it to replicate the issue. I’ve tried clearing my browser and computer caches and have restarted.

    From there (using a proxy) I can’t log in to my site. Can I manage multiple sites from my wordpress login or do I have to add another for each site I make?

    Any advice would be appreciated, thanks.

Viewing 1 replies (of 1 total)
  • I have never yet had to deal with that kind of problem, and I would begin at the BlueHost cPanel to be certain about how things are being handled there, then check .htaccess next if everything at cPanel is truly fine. After that, either of these could help and would almost certainly not hurt anything…

    At the top of theme/functions.php:

    <?php
    /*-either-*/
    /* @ theme/functions.php /*toggle on/off*
    update_option('siteurl','https://domain.com');
    update_option('home','https://domain.com');
    /*-or-*/
    /* @ theme/functions.php /*toggle on/off*
    update_option('siteurl','https://www.domain.com');
    update_option('home','https://www.domain.com');
    /*-end-*/

    Near the top of root/wp-config.php:

    <?php
    /**
    * The base configurations of the WordPress.
    *
    * @package WordPress
    */
    /*-either-*/
    /** @ root/wp-config.php: /*toggle on/off*
    define('WP_HOME','https://domain.com');
    define('WP_SITEURL','https://domain.com');
    /*-or-*/
    /** @ root/wp-config.php: /*toggle on/off*
    define('WP_HOME','https://www.domain.com');
    define('WP_SITEURL','https://www.domain.com');
    /*-end-*/

    One pair of lines in each of those is for non-www and the other pair is for www. To turn either pair on, just add a slash ‘/’ at the end of /*toggle on/off* … then later go back and turn them off and re-save your corrected displays at Dashboard > Settings > General.

Viewing 1 replies (of 1 total)
  • The topic ‘Can't eliminate www.www. from hyperlink’ is closed to new replies.