Configuring Wildcard Subdomains – Hosting Company Can't Help?

I’m out of my depths when it comes to doing things like this :

http://codex.wordpress.org/Configuring_Wildcard_Subdomains_for_multi_site_under_Plesk_Control_Panel

I have the subdomain feature working on the website, everything loads fine etc, but when it comes to typing /wp-admin after the subdomain so a user can log in, it stops working. It just hangs for ages.

Seems to be stuck in some sort of redirect loop, and APPARENTLY, following those instructions in the codex document above. I can barely understand them though.

Suggestions? Please haha.

Regards.

Dean

  • Vaughan
    • Support/SLS MockingJay

    Hi @dean,

    Can you post your htaccess & wp-config.php here so I can take a look? (remove the DB credentials)

    I haven’t ever used plesk, but your wildcard domains do look to be working ok from my initial test when I went to test.yourdomain.com it redirected me to the registration page.

    Thanks

  • Dean
    • Design Lord, Child of Thor

    RewriteEngine On

    RewriteBase /

    RewriteRule ^index.php$ – [L]

    # add a trailing slash to /wp-admin

    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]

    RewriteCond %{REQUEST_FILENAME} -d

    RewriteRule ^ – [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]

    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*.php)$ $2 [L]

    RewriteRule . index.php [L]

  • Dean
    • Design Lord, Child of Thor

    /* Multisite */

    define( ‘WP_ALLOW_MULTISITE’, true );

    define(‘MULTISITE’, true);

    define(‘SUBDOMAIN_INSTALL’, true);

    define(‘DOMAIN_CURRENT_SITE’, ‘unboredable.com’:wink:;

    define(‘PATH_CURRENT_SITE’, ‘/’:wink:;

    define(‘SITE_ID_CURRENT_SITE’, 1);

    define(‘BLOG_ID_CURRENT_SITE’, 1);

  • Vaughan
    • Support/SLS MockingJay

    Hi,

    As you are using a subdomain site, your htaccess is incorrect, you are using the htaccess for a subfolder multisite.

    Can you replace your htaccess with the following.

    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^wp-admin$ wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule ^(wp-(content|admin|includes).*) $1 [L]
    RewriteRule ^(.*.php)$ $1 [L]
    RewriteRule . index.php [L]
    # END WordPress

    Hope this helps

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.