.htaccess when WP in subdirectory
-
Okay, can I just get a straight answer on this?
With WP installed into a subdirectory (/blog) and permalinked to the root (copied .htaccess and index.php to root directory and edited index.php properly), what should the following .htaccess files look like?
a) the .htaccess in the root
b) the .htaccess in /blogShould I even have 2 .htaccess at this point? Should the /blog one be blank?
Right now I have this in my /blog .htaccess
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> # END WordPress
and this in my root .htaccess
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
What is correct? Should they be the other way? Should the /blog .htaccess even have anything? Why is my site working still but my admin panel serving 500 errors?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘.htaccess when WP in subdirectory’ is closed to new replies.