QuestionsHow to configuring WP .htaccess to view subfolders?
Anonymous
asked 3 years ago
I have a WP installation with a .htaccess file that looks like this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
I tried installing a fresh copy of WPress into a subdirectory for a separate blog and am getting 404 errors within the root WPress when I try to view it. I'm assuming this is because of the .htaccess file.
How do I change it so that I can view the subfolder?
1 Answers
tech Staff
answered 3 years ago
In this case, you may want to try this:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog2/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog2/index.php [L]
</IfModule>
# END WordPress

Please login or Register to submit your answer