Ready to get started?Download WordPress


Sub directory 404 error (10 posts)

  1. bazzablue
    Posted 2 years ago #

    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.

  2. Is mod-rewrite on?

  3. bazzablue
    Posted 2 years ago #

    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.

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

  5. bazzablue
    Posted 2 years ago #

    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

    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

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

  7. bazzablue
    Posted 2 years ago #

    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.

  8. 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]
    # END WordPress
  9. bazzablue
    Posted 2 years ago #

    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

  10. 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.

Topic Closed

This topic has been closed to new replies.

About this Topic