• Resolved x3mgroup

    (@x3mgroup)


    Hi i need help!

    I have installed a WP Multi Site subDIRECTORY instance installed in a folder : /wrdprss

    when i enter a (non existing) url:
    mydomain.tld/blabla
    i get a tab in my browser (PAGE NOT FOUND)
    while the rendered page shows a WP PAGE (theme is Twenty Twelve)


    This is somewhat embarrassing, isn’t it?
    It seems we can’t find what you’re looking for. Perhaps searching can help.

    This is my .htaccess (in the html root folder)

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [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).*) wrdprss/$2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ wrdprss/$2 [L]
    RewriteRule . index.php [L]

    And this is part of my wp-config.php file

    /* Multisite */
    define(‘WP_ALLOW_MULTISITE’, true);
    define(‘MULTISITE’, true);
    define(‘SUBDOMAIN_INSTALL’, false);
    define(‘DOMAIN_CURRENT_SITE’, ‘mydomain.tld’);
    define(‘PATH_CURRENT_SITE’, ‘/’);
    define(‘SITE_ID_CURRENT_SITE’, 1);
    define(‘BLOG_ID_CURRENT_SITE’, 1);

    define(‘ADMIN_COOKIE_PATH’, ‘/’);
    define(‘COOKIE_DOMAIN’, ”);
    define(‘COOKIEPATH’, ”);
    define(‘SITECOOKIEPATH’, ”);

    Thanx for any you could help me!

    btw:
    other created (sub)sites works
    (well at least no problems found til now!)

Viewing 6 replies - 1 through 6 (of 6 total)
  • You can define a better “no blog found” landing page when a blog is not found and add this to your wp-config:
    define( 'NOBLOGREDIRECT', 'http://www.mydomain.tld' );

    Thread Starter x3mgroup

    (@x3mgroup)

    Hi David,

    Appreciate your reply!

    So if i understand your answer, this is needed for WPMS SUBDIR’s installations?

    I honestly though that it would behave in a similar way as does WPMS SUBDOMAIN installation would, in other words when (if the registration has been disabled) one gets, when accessing a NON EXISTING subdomain, the following message :

    Registration has been disabled.

    Or am i mistaken

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    You’re mistaken, but understandably 🙂

    How would WP know the difference between domain.com/fakeblog and domain.com/missingpage? 🙂 It’s expected behavior.

    Thread Starter x3mgroup

    (@x3mgroup)

    Hi Ipstenu (David as well)

    Again thank you both for your reply.

    David, for what i have read on different forums, i think indeed that the NOBLOGREDIRECT is the solution i want, but… is there a way to have it work as follow:

    Let’s say i made registration available, and somebody would enter

    my-domain.tld/userx (which does not exist)

    and have it redirect to:

    my-domain.tld/wp-signup?new=userx

    Thanx in advance for your suggestions!

    Regards
    Charles (x3mgroup)

    define( 'NOBLOGREDIRECT', 'http://my-domain.tld/wp-signup.php?new=' . str_replace( '/', '', $_SERVER['REQUEST_URI'] ) );

    Thread Starter x3mgroup

    (@x3mgroup)

    Sorry for replying so late, but thank you very much for helping me out!

    David, your suggestion just work flawlessly.

    Once again thanks, you both, for taking the time to help me out!

    Kind regards
    Charles (aka X3mGroup)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Help WP Multisite susDIRECTORY (wp installed in subfolder)’ is closed to new replies.