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

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


    Lead Plugin Wrangler


    Search for

    Replace with

    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 (.*)$1 [R=301,L]


    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: redirects to

    and my mapped domain redirects to

    but works just fine as well as

    when using the

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

    all it does it loop back and forth between and

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



    quick note:

    when i use

    # Redirect non-www urls to www
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^garagedoorsolutionstx\.com [NC]
    RewriteRule (.*)$1 [R=301,L] no longer redirects to the signup page but

    using does redirect back to

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



    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 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 redirect signup.php’ is closed to new replies.