Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vc27/1102ab4d13c2ee4c64a7 to your computer and use it in GitHub Desktop.
Save vc27/1102ab4d13c2ee4c64a7 to your computer and use it in GitHub Desktop.
example of - problem-activating-on-wordpress-site-in-subdirectory
# BEGIN SF Move Login
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^admin/login/?$ admin/wp-login.php [QSA,L]
    RewriteRule ^admin/postpass/?$ admin/wp-login.php?action=postpass [QSA,L]
    RewriteRule ^admin/logout/?$ admin/wp-login.php?action=logout [QSA,L]
    RewriteRule ^admin/lostpassword/?$ admin/wp-login.php?action=lostpassword [QSA,L]
    RewriteRule ^admin/retrievepassword/?$ admin/wp-login.php?action=retrievepassword [QSA,L]
    RewriteRule ^admin/resetpass/?$ admin/wp-login.php?action=resetpass [QSA,L]
    RewriteRule ^admin/rp/?$ admin/wp-login.php?action=rp [QSA,L]
    RewriteRule ^admin/register/?$ admin/wp-login.php?action=register [QSA,L]
</IfModule>
# END SF Move Login


# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment