Quantcast
Channel: BulletProof Security Forum » All Posts
Viewing all articles
Browse latest Browse all 12508

Reply To: Redirect WordPress Website and Still Allow Login

$
0
0

Actually I found a problem with the code I posted above.  This code works for any WordPress redirects from wp-admin to wp-login or directly accessing wp-login.php.

What the condition / rule says is do NOT redirect to the new site if the URI/URL is either /wp-admin or wp-login.php.  All other URI’s/URL’s will be redirected to the new site except for /wp-admin and wp-login.php.

# WP REWRITE LOOP START
RewriteEngine On
RewriteBase /wordpress-testing-website/
RewriteCond %{REQUEST_URI} !^(/wp-admin|.*wp-login\.php.*) [NC]
RewriteRule (.*) http://www.ait-pro.com/$1 [R=301,L]
# WP REWRITE LOOP END
  • This reply was modified 13 hours, 41 minutes ago by Avatar of AITpro Admin AITpro Admin.

Viewing all articles
Browse latest Browse all 12508

Trending Articles