WordPress.org

Support

Support » Multisite » Sub directory 404 error

Sub directory 404 error

  • I have set up a local install of WordPress using Xampp and am trying to use Multisite for the first time.

    Having followed the instructions on the Codex everything goes ok until I try and update the .htaccess file. When the .htaccess file is there nothing works – clicking on anything in the dashboard causes a 404 error. If I remove the .htaccess file I am able to view and use the dashboard of the main site but not the sub directory.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Is mod-rewrite on?

    If that means removing the # from the following:
    LoadModule rewrite_module modules/mod_rewrite.so
    Then yes.

    I have also changed all the AllowOverride to All.

    I had a good look around the forums before posting and followed directions that you gave to others but have had no joy.

    Did WP work, with pretty permalinks, BEFORE you turned on Multisite? That is did you check on Singlesite?

    I didn’t try that so I have gone back and started again with a fresh install. In short they don’t. Having changed the permalink I clicked on one of the menu items and my screen displayed the following:

    Server error!

    The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script.

    If you think this is a server error, please contact the webmaster.

    Error 500

    localhost
    05/04/12 22:05:43
    Apache/2.2.21 (Win32) mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1

    I didn’t try that so I have gone back and started again with a fresh install. In short they don’t.

    That’s your problem.

    Multisite requires permalinks to work correctly.

    Did you update your .htaccess when you turned on permalinks in Single site?

    What info needs to be updated in the .htaccess? I have seen the code that needs to be added when switching to multisite but not for single site.

    Single site is

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

    Ok just opened my htaccess file and that is what is there apart from the RewriteRule . /index.php [L} having some extra folder extensions (xampp/sitename/) before /index.php

    You shouldn’t. If WP is running from the root of your domain (i.e. domain.com ) then there’s no need for the extra folders….

    But you’re running XAMPP and that’s out of my bag o’ tricks :(‘

    I’d ask how to get pretty URLs working in http://wordpress.org/support/forum/localhost-installs – where the locally smart folks live.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Sub directory 404 error’ is closed to new replies.
Skip to toolbar