Using hide backend after moving site from root to subfolder
-
Hello,
I have a site that was installed at the root folder of the host (primary domain) and using iThemes Security Hide Backend option without a problem.
I now moved the site to a SUBFOLDER using now this block in .htaccess there:
# BEGIN WordPress # The directives (lines) between "BEGIN WordPress" and "END WordPress" are # dynamically generated, and should only be modified via WordPress filters. # Any changes to the directives between these markers will be overwritten. <IfModule mod_rewrite.c> RewriteEngine On RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteBase /subfolder RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /subfolder/index.php [L] </IfModule> # END WordPress
I then added another .htaccess file with those 2 lines at ROOT folder:
RewriteEngine On RewriteRule (.*) subfolder/$1 [L]
This new .htaccess file at root was immediately modified (after first login at subfolder) by iThemes Security that added the same block that is already used at the main site’s .htacess file. Meaning that both .htaccess files (at root and at subfolder) include the same blocks provided by iThemes Security.
Everything now works fine except the Hide Backend feature which is no more recognised. I can of course disable it and login at the standard WP page without a problem but when enabling the Hide Backend feature it doesn’t work anymore.
Is there a way to get this feature work when the site is under a subfolder?
Thanks.
- The topic ‘Using hide backend after moving site from root to subfolder’ is closed to new replies.