WordPress.org

Support

Support » Multisite » 404 error after installing a new blog outside a multisite blog

404 error after installing a new blog outside a multisite blog

Viewing 8 replies - 1 through 8 (of 8 total)
  • It’s not WPMU, it’s MultiSite 😉 WPMU refers to the pre 3.0 version.

    Question the first: Why isn’t new-blog a child site? That’d ‘solve’ things.

    Question the second: new-site is a physical folder, I presume, not a redirect?

    Third: What’s in your .htaccess?

    Thanks for the correction. I thought they are the same thing. 😀

    The new site was originally a child site but I installed it as a separate site because the WishList Member plugin doesn’t support Multisite. The folder protection feature doesn’t work. They advised me to install it as a separate site.

    Yes, the new site is a physical folder.

    Here’s the .htaccess of the new site:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /intraweb/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /intraweb/index.php [L]
    </IfModule>
    # END WordPress

    and here’s the .htaccess of the Multisite:

    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).*) $2 [L]
    RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Andrea Rennick

    @andrea_r

    Customer Care at Copyblogger Media and Studiopress

    But when I try to access the homepage of the new blog (http://example.com/new-blog), I get a 404 error and the url becomes: http://example.com/new-blog/index

    Because you’ve pu the word “index” in one of the blog url settings on the new site.

    If it is a separate installation, this is totally unrelated to multisite.

    Andrea_r, there is no “index” in the blog url settings..

    The new site was originally a child site but I installed it as a separate site because the WishList Member plugin doesn’t support Multisite. The folder protection feature doesn’t work. They advised me to install it as a separate site.

    Did you delete it from the main multisite for one?

    Did you put any redirection modules in the old site that could be jiggering with your new one?

    If you make another separate folder (with nothing in it) like foobar, does domain.com/foobar put in the index? (this will tell you if it’s something you screwed up on the multisite or on the single site)

    I gave the separate site a diffrenet name. I created a separate folder and it also puts in the /index.

    Here are the redirections in the .htaccess:

    RedirectMatch 301 (.*)\.html$ http://leaseprof.nl/$1
    Redirect 301 /afspraak-maken.php http://leaseprof.nl/afspraak-maken/
    Redirect 301 /vestigingen.php http://leaseprof.nl/vestigingen/
    Redirect 301 /informatie-aanvragen.php http://leaseprof.nl/informatie-aanvragen/
    Redirect 301 http://leaseprof.nl/leaseprofintraweb/index.html http://leaseprof.nl/leaseprofintraweb/
    Redirect 301 /autobedrijven/autobedrijven-more/ http://leaseprof.nl/autobedrijven/
    Redirect 301 /bestuurder/bestuurder-more/ http://leaseprof.nl/bestuurder/
    Redirect 301 /fleetowner/fleetowner-more/ http://leaseprof.nl/fleetowner/
    Redirect 301 /leasemaatschappij/leasemaatschappij-mor/ http://leaseprof.nl/leasemaatschappij/

    The only line that makes me wonder is

    Redirect 301 http://leaseprof.nl/leaseprofintraweb/index.html http://leaseprof.nl/leaseprofintraweb/

    Click, try removing the .htaccess file from the new site folder (back it up though) and see if you can access it then. I have a similar set up with a test site in a subfolder and I don’t have a .htaccess file in there and it works fine.

    You may still need to put one back in there later, but this could help in figuring out the problem.

    And just to be clear, your file structure is:

    /root <– this is where your WP multisite is
    /root/second <– this is where your new WP site is

    Right?

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘404 error after installing a new blog outside a multisite blog’ is closed to new replies.
Skip to toolbar