Support » Networking WordPress » drop WWW to fix domain.com redirect signup.php

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    Lead Plugin Wrangler

    Use http://interconnectit.com/products/search-and-replace-for-wordpress-databases/

    Search for http://www.domain.com

    Replace with domain.com

    Don’t do that again.

    If you MUST use www, this goes at the absolute TOP of your .htaccess

    # Redirect non-www urls to www
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^example\.com [NC]
    RewriteRule (.*) http://www.example.com/$1 [R=301,L]
    pyroboy024911

    (@pyroboy024911)

    Ok so i did what you suggested it only made things worse broke links, and images. I was able to just restore my database back its prior state. When i used the tool i did a site wide search through all tables was i supposed to do that?

    ok so here is what i have:

    garagedoorsolutionstx.com redirects to

    http://www.garagedoorsolutionstx.com/wp-signup.php?new=garagedoorsolutionstx.com

    and my mapped domain dallasgargedoors.com redirects to

    http://www.garagedoorsolutionstx.com/wp-signup.php?new=dallasgaragedoors.com

    but http://www.dallasgargedoors.com works just fine as well as http://www.garagedoorsolutionstx.com

    when using the

    function ms_block_wp_signup() {
    if( strpos( $_SERVER['SCRIPT_NAME'], 'wp-signup.php' ) !== false ) {
    wp_redirect( get_option('siteurl') );
    die;
    }
    }
    add_action('wp', 'ms_block_wp_signup', 99);

    all it does it loop back and forth between garagedoorsolutionstx.com and dallasgaragedoors.com

    what can i do to fix this been at this for a few days now

    pyroboy024911

    (@pyroboy024911)

    quick note:

    when i use

    # Redirect non-www urls to www
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^garagedoorsolutionstx\.com [NC]
    RewriteRule (.*) http://www.garagedoorsolutionstx.com/$1 [R=301,L]

    garagedoorsolutionstx.com no longer redirects to the signup page but

    using http://www.dallasgaragedoors.com does redirect back to

    http://www.garagedoorsolutionstx.com/wp-signup.php?new=www.dallasgaragedoors.com

    and i would also like to note that i have my domain mapping set up with just dallasgaragedoors.com which works with no redirect :/

    pyroboy024911

    (@pyroboy024911)

    Ok sorry to keep posting but i think i fixed my problems. I’m not even sure if this the right way of doing things, since my ultimate goal is to be SEO friendly.

    This is my .htaccess fix

    # Redirect non-www urls to www and ignores sub-domains
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^[^.]+\.[^.]+$
    RewriteCond %{HTTPS}s ^on(s)|
    RewriteRule ^ http%1://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

    my only other concern is that i had to use this to ignore sub-domains because each network site going into the dashboard would revert back to subdomain.domain.com instead of being mapped to the specified domain i mapped it to… i just not sure that’s right it because it doesn’t seem every uniform to me.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘drop WWW to fix domain.com redirect signup.php’ is closed to new replies.