[resolved] 404 Error Cant setup multisite network on XAMPP (2 posts)

  1. GazL
    Posted 3 years ago #

    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: http://codex.wordpress.org/Create_A_Network

    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 (http://rudyegenias.wordpress.com/2006/08/21/enabling-mod-rewrite-in-xampp/) I made changes to the apache httpd.conf file to ensue Apache was allowing me to rewrite files:
    • LoadModule rewrite_module modules/mod_rewrite.so
    • AllowOverride ALL

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

    Your help is very much appreciated

    Thanks in advance, Garry

  2. GazL
    Posted 3 years ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Topic