403 Forbidden Error
-
Hello everyone,
I am currently running a multisite network with the subdirectory setup and I believe it has been set up successfully, however, I just installed a second site in the subdirectory and it is receiving a “403 – Forbidden You do not have permission to access this document’ error. The first site looks/appears fine.
My network is set us as such:
1st site: example.com
2nd site: example.com/exampleThe second site is the one receiving the error, however if you visit the second site as such: example.com/example/2013/08/16/hello-world/ it works fine, but nothing at example.com/example displays other than the 403 error, but it seems like posts that I have been imported appear, but nothing loads at the subdirectory leve (example.com/example).
Also, I only have one htaccess file and it is located under site 1 (example.com), do I need to create one and add it to site 2 under example.com/example? FWIW, here is what is in my htaccess file for site 1:
#Protect the .htaccess File <files .htaccess=""> order allow,deny deny from all </files> # disable directory browsing Options All -Indexes <IfModule mod_deflate.c> <FilesMatch "\.(js|css|php|html|js^|css^)$"> SetOutputFilter DEFLATE </FilesMatch> </IfModule> # Force non-www RewriteEngine On RewriteCond %{HTTP_HOST} ^www\.type\.is$ [NC] RewriteRule ^(.*)$ https://type.is/ [L,R=301] # BEGIN W3TC Browser Cache <IfModule mod_deflate.c> <IfModule mod_headers.c> Header append Vary User-Agent env=!dont-vary </IfModule> AddOutputFilterByType DEFLATE text/css text/x-component application/x-javascript application/javascript text/javascript text/x-js text/html text/richtext image/svg+xml text/plain text/xsd text/xsl text/xml image/x-icon application/json <IfModule mod_mime.c> # DEFLATE by extension AddOutputFilter DEFLATE js css htm html xml </IfModule> </IfModule> # END W3TC Browser Cache # BEGIN WordPress 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] # END WordPress
Any insight and help would be great. Thank you!
- The topic ‘403 Forbidden Error’ is closed to new replies.