WordPress.org

Ready to get started?Download WordPress

Forums

404 error after installing a new blog outside a multisite blog (9 posts)

  1. clickmarketing
    Member
    Posted 2 years ago #

    I need help with my new WP installation. I have installed a separate blog outside a multisite blog.

    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

    This is the structure:
    http://example.com/ (WPMU parent)
    --- http://example.com/blog1 (WPMU child)
    --- http://example.com/blog2 (WPMU child)
    --- http://example.com/new-blog (independent WP site)

    Thanks in advance for the help!

  2. 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?

  3. clickmarketing
    Member
    Posted 2 years ago #

    Thanks for the correction. I thought they are the same thing. :D

    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]
  4. 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.

  5. clickmarketing
    Member
    Posted 2 years ago #

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

  6. 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)

  7. clickmarketing
    Member
    Posted 2 years ago #

    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/
  8. The only line that makes me wonder is

    Redirect 301 http://leaseprof.nl/leaseprofintraweb/index.html http://leaseprof.nl/leaseprofintraweb/
  9. darichardson
    Member
    Posted 2 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic