Did you pick subdomains or subfolders?
Oh, yes I forgot to mention I sm doing it on XAMPP on a localhost. I am pretty sure from reading about this problem that it is an htaccess problem but I’m not sure how to fix it exactly. In my XAMPP htaccess is in a separate folder called “forbidden” which I think is what is causing the problem but am not sure how to go about fixing it.
You need to create a NEW htaccess file in the same folder where the wp-config file is and paste in the lines the network setup gave you.
Ok, I figured it was something like that, so my htaccess file should say:
AuthType Basic
AuthName "FORBIDDEN AREA"
AuthUserfile "../htdocs/forbidden/.htpasswd"
Require valid-user
RewriteEngine On
RewriteBase /blog/
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]
Last time I did just that, it said that it could not connect to my localhost
Ok, I’m almost there! I can now access the sites but only the HTML shows up no images, CSS, JS, etc.
The htaccess file is not being read properly. talk to your host so they can kick the box into submisison.
Then it’s not reading your .htaccess correctly. Make sure allowOverride is set to All on your httpd.conf (or whatever passes for that with XAMMP)
Ok, I thought I did that, here’s my httpd.conf file:
[Large code excerpt removed by moderator per forum rules. Please use the pastebin for all large code excerpts. It works better anyway.]
“AllowOverride FileInfo Options” is what you need.
Ok, so do I replace both of these or either?
Options Indexes FollowSymLinks Includes ExecCGI
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
OR
#
# AllowOverride controls what directives may be placed in .htaccess files.
# It can be "All", "None", or any combination of the keywords:
# Options FileInfo AuthConfig Limit
#
AllowOverride All
#
# Controls who can get stuff from this server.
#
Order allow,deny
Allow from all
</Directory>
You need to use CODE tags (the back ticks, it’s the tilde key to the left of the number 1 on most keyboards) to show code.
Do you mean you have two of those calls in your httpd.conf? What’s the top <Directory...> stuff say?
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all
</Directory>
Here is the top directory