I have four local WordPress installations with XAMPP. All function well except for the multisite, which is showing 404 errors when clicking on pages and Subdirectory blogs.
httpd.conf:
#LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule setenvif_module modules/mod_setenvif.so
wpconfig.php:
define('WP_DEBUG', false);
define('WP_ALLOW_MULTISITE',true);
define( 'MULTISITE', true );
define( 'SUBDOMAIN_INSTALL', false );
$base = '/';
define( 'DOMAIN_CURRENT_SITE', 'www.parceledgardens.com' );
define( 'PATH_CURRENT_SITE', '/' );
define( 'SITE_ID_CURRENT_SITE', 1 );
define( 'BLOG_ID_CURRENT_SITE', 1 );
/* That's all, stop editing! Happy blogging. */
.htaccess, located on root directory:
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).*) $1 [L]
RewriteRule ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
RewriteRule . index.php [L]
I'm really not sure about the .htaccess file. My working .htaccess file on the server where my website is live works, but I deleted a lot of it for the local install because I am completely redesigning the site and may not need all the rules... And it didn't work locally anyway.
Uninstalled, reinstalled. Deleted and recreated database. Same issues. I'm sure I'm missing something, I just don't see it here. The other three blogs don't have an .htaccess file.