WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] WP3.0 network wildcard redirect to wp-signup.php (7 posts)

  1. SmockLady
    Member
    Posted 3 years ago #

    I have a new install of WP3.0 set up as a network with wildcard subdomains turned on at both the cpanel and server side DNS Zone. No matter what I try any illegit subdomain redirects to mydomain.com/wp-signup.php?new=illegitsubdomain

    OK I've followed a few different threads:
    I found this one first http://wordpress.org/support/topic/396691
    and nothing there helped.
    then andrea_r pointed me to this one: http://wordpress.org/support/topic/414816 and it didn't help either.

    I have deactivated every single plugin and that doesn't help.

    Are there any other options or ideas out there to try that I may have missed already on the forums thinking it didn't apply to me? Or do any of you have an suggestions not discussed yet?

  2. What's in your .htaccess?

    What happens if you make a non-wp created subdomain? Does that work?

  3. SmockLady
    Member
    Posted 3 years ago #

    I'm not sure I'm following your question clearly, but I'm working on little sleep.
    http://mysite.com works great (main site)
    http://moggiepillar.mysite.com (network site) works great
    http://nonsense.mysite.com (made up subdomain) doesn't work, it goes to the /wp-signup.php?new=nonsense page.

    .htaccess is what the wp network install said copy/paste and nothing any different.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^files/(.+) wp-includes/ms-files.php?file=$1 [L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule . index.php [L]
    </IfModule>
    
    # END WordPress
  4. Never mind, the question was useless now that I think about it! :)

    I think your .htaccess is okay (I have the one for subfolders, so it's a little different).

  5. http://nonsense.mysite.com (made up subdomain) doesn't work, it goes to the /wp-signup.php?new=nonsense page.

    But that's *exactly* what is supposed to happen. :) It find a site that doesn't exist, so it redirects you to the signup page.

    If you don't want it to do that, your only other option is to use the noblogredirect to just go to the main page instead.

  6. SmockLady
    Member
    Posted 3 years ago #

    well, on this site I don't want it to go to the signup page. And when I use the noblogredirect route I get

    The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete.
    
        * This problem can sometimes be caused by disabling or refusing to accept
        cookies.

    So I misunderstood the "what it was supposed to do" in a WordPress install. Understanding that, that setup for another site is all good, but for this one I need to make this work via the noblogredirect route.

    Shall we close this and continue discussion over here:
    http://wordpress.org/support/topic/414816?replies=7

    :D

  7. SmockLady
    Member
    Posted 3 years ago #

    copied from other thread for reference:

    // If VHOST is 'yes' uncomment and set this to a URL to redirect if a blog does not exist or is a 404 on the main blog. (Useful if signup is disabled)
    // For example, the browser will redirect to http://examples.com/ for the following:

    define( 'NOBLOGREDIRECT', 'http://example.com/' );

    Commented text is what was originally in MU.

    the code goes in the wp-config file.

Topic Closed

This topic has been closed to new replies.

About this Topic