• I have one Plesk server that has several domains, many of them running WordPress. Most of them also are network installations and all of the network WP installations are subdomain, not subdirectory.

    I have at least two domains that are redirecting to wp-signup when trying to go to the subdomain.domain.com. Strangely, to me at least, is that they don’t redirect to https://www.domain.com?wp-signup.php…

    They redirect to https://www.wholeotherdomainonmyserver.com?wp-signup.php…

    I’ve looked at other threads about this misdirection and tried some of the things there, but I’m still having this problem.

    I tried to make wp-config.php and .htaccess for these errant domains look like the same files on the domains that do it right, but nothing seems to make a difference.

    Here is the relevant portion of .htaccess:

    # BEGIN WordPress
    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]
    # END WordPress

    Here is the relevant portion of wp-config.php:

    define ('WPLANG', '');
    
    define( 'MULTISITE', true );
    define( 'SUBDOMAIN_INSTALL', true );
    define( 'DOMAIN_CURRENT_SITE', 'readersclubs.com' );
    define( 'PATH_CURRENT_SITE', '/' );
    define( 'SITE_ID_CURRENT_SITE', 1 );
    define( 'BLOG_ID_CURRENT_SITE', 1 );
    define('ABSPATH', dirname(__FILE__).'/');
    define('WP_TEMP_DIR',ABSPATH.'wp-content/tmp/');
    define( 'AUTH_KEY', '^TI-9eFJ#<S!(PqvprC~jN

    m:+gJ.sg&%lO>yN~ok%?h/&P=t+i4YhG^C[|BKak:’ );
    define( ‘SECURE_AUTH_KEY’, ‘2FWy`{-F+N;^h^|{O5lt$m+kL:+8nrAei?&BcZ|nq35WqUSD|27ppHf|K*hNs?Xb’ );
    define( ‘LOGGED_IN_KEY’, ‘jU-h9;NkuymQ@ozK|Q8iGyOMh9N UgLB0$%i=e [3VQ1/9//q`&e9yJ#Y$A~2a((‘ );
    define( ‘NONCE_KEY’, ‘2T/Oa]Vqg=Yt+2G;cRbC?oeBz8eidK@BzrCd/&$J7<?~-f27}9LsLE<:^a|4^/Z}’ );
    define( ‘AUTH_SALT’, ‘RmMELVN#OmHn^|<<:X:-.r}G!dJVpz3-]g&%?tf?g+pj_8RjLL2}&mO-FU}/]|Ra’ );
    define( ‘SECURE_AUTH_SALT’, ‘nS1TnD7$.>ETCQM3[yO,0G2pZf3mfjo39MiM3rx<A@KV^Q/jG21DJi+ ^n[VY;’ );
    define( ‘LOGGED_IN_SALT’, ‘+3INZy(!@1%!0Tqo4){mhS(+>)VEtS_gJB-NRO[{6:ZiDo%j+62a,_`{h +*uDUc’ );
    define( ‘NONCE_SALT’, ‘m8MLoqj5OArD`nMSe[RGD/M.q*?$([K]ODk4LV6to%Q@U5o_U%r*-kDYa?I=iFiC’ );
    /* That’s all, stop editing! Happy blogging. */

    require_once(ABSPATH.’wp-settings.php’);`

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter rexgoode

    (@rexgoode)

    I have solved my problem by the following:

    Things I checked

    I had a DNS entry: *.domain.com, A, IP Address.

    Things I changed

    I added the following line to vhost.conf in the same directory as httpd.conf.

    ServerAlias "*.domain.com"

    Things I ran

    The reconfigure command for my server, in my case, httpdmng --reconfigure-all
    Followed by apachectl graceful

    I did this on the two domains I know were having this problem. Now I’m going to check them all.

    thanks for posting your solution – did the check confirm that all was properly setup?

    Thread Starter rexgoode

    (@rexgoode)

    It did. I might be having a problem with other subdomains on the site that aren’t part of WP. I’m looking into it.

    Thread Starter rexgoode

    (@rexgoode)

    Unfortunately, while this solves the problem I was having with WordPress Subdomains, it creates a problem for other subdomains. For example,
    if I do webmail.domain.com, instead of taking me to the right page for that, I end up in WordPress at the wp-signup.php address. There must be a way to have it both ways.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘The wp-signup thing but across domains’ is closed to new replies.