The MU forums have moved to WordPress.org

Unable to change siteurl with www (7 posts)

  1. MTV
    Member
    Posted 14 years ago #

    I have setup some subdomain blogs and working fine but I want the main domain has www infront of it. Somehow it won't let me add www.

    Is there a way that we can make it happens?

  2. alan.bull
    Member
    Posted 14 years ago #

    I am keen to do this as well. Has anyone got any tips? I have the .htaccess code setup which re-directs non www. links fine, but obviously it directs to a page not found as Wordpress MU has not been setup to use www.

    Please help us to do this!!

  3. bepresents
    Member
    Posted 14 years ago #

    It may be line 10-11 of wpmu-settings.php in your WP MU root folder:

    if( substr( $domain, 0, 4 ) == 'www.' )
    	$domain = substr( $domain, 4 );

    Try commenting those 2 lines out.

  4. bepresents
    Member
    Posted 14 years ago #

    And always try and do it through the wp-admin panel first!

    You may need to change the wp-config.php file too.

  5. andrea_r
    Moderator
    Posted 14 years ago #

    In 3.0 this won't be necessary.

  6. ddarby14
    Member
    Posted 13 years ago #

    These lines are not available in 3.0 beta 1, however I still had the same problem as I ran the install routine on the url without the www.

    Solved it by going into the db and updating 2 entries to include the www

    1) option_name = siteurl
    2) option_name = home

    Worked like a charm with no .htaccess mods and the redirect from non-www url works too.

  7. andrea_r
    Moderator
    Posted 13 years ago #

    Right, because 3.0 support the www. No need to hack any code.

    (changing db entires is not hacking the code)

About this Topic