• So, here’s the deal.

    I got one WP Multisite installed with 1 subsite. Im running the whole thing in subdomain “mode”. I did the whole DNS-pointer (A *.domain.se) to the correct IP.

    Now the problem, even though i created a subsite in wp-admin (lets call it foobar), when i type in foobar.domain.se i get redirected to the mainsite. foobar.domain.se/wp-admin/ gives a 404 error.

    Is it host related or something wrong in my config? More info, it got a shared IP – might be the problem (even though I got the impression it should work anyways)? Iäve searched like crazy on the web, in my htaccess and for hostsettings – and it should be the correct ones.

    .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

    wp-config.php

    define(‘WP_ALLOW_MULTISITE’, true);
    define( ‘MULTISITE’, true );
    define( ‘SUBDOMAIN_INSTALL’, true );
    $base = ‘/’;
    define( ‘DOMAIN_CURRENT_SITE’, ‘xn--vrnamo-bua.nu’ );
    define( ‘PATH_CURRENT_SITE’, ‘/’ );
    define( ‘SITE_ID_CURRENT_SITE’, 1 );
    define( ‘BLOG_ID_CURRENT_SITE’, 1 );
    define(‘SUNRISE’, ‘on’);

    Thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Every subdomain redirects to primary.’ is closed to new replies.