Support » Localhost Installs » 404 Error Cant setup multisite network on XAMPP

  • Resolved GazL


    I’ve installed WordPress on XAMMP to trial before making changes to my live site. The local WordPress works fine but I now want to make it multi-site using subfolder so I followed these instructions:

    The process seemed to work and when I create a new site everything everything seems to work OK until I try to edit or view the newly created sites; when viewing the new site the page displays without style sheets, and when editing the new site the page doesn’t display at all ‘Error 404’

    Reading other posts ( I made changes to the apache httpd.conf file to ensue Apache was allowing me to rewrite files:
    • LoadModule rewrite_module modules/
    • AllowOverride ALL

    … but still can’t view or edit new sites that I create.

    Your help is very much appreciated

    Thanks in advance, Garry

Viewing 1 replies (of 1 total)
  • Just thought I’d update this issue which was fixed some time ago

    After adding the following code to the .htaccess file, Windows renamed the file when I saved it to htaccess.htaccess I didnt notice this at the time and this is why I had the error. Once I renamed it .htaccess the problem was resolved. Now I can create new sites, test plugins using WordPress and XAMPP.

    RewriteEngine On
    RewriteBase /wordpress/
    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).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]
Viewing 1 replies (of 1 total)
  • The topic ‘404 Error Cant setup multisite network on XAMPP’ is closed to new replies.