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

Reply To: Redirect WordPress Website and Still Allow Login

$
0
0

Ok, thank you, I was able to edit and load the htaccess file.

I still cannot access the login page though. Is there something wrong with how this is set up?

# CUSTOM CODE BOTTOM HOTLINKING/FORBID COMMENT SPAMMERS/BLOCK BOTS/BLOCK IP/REDIRECT CODE
# WP REWRITE LOOP START
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !^(/wp-admin|.*wp-login\.php.*) [NC]
RewriteRule (.*) http://immunocal.md/$1 [R=301,L]
# WP REWRITE LOOP END
RedirectMatch 301 ^/immunocal.science\.php$ http://immunocal.md/science/
RedirectMatch 301 ^/immunocal.science\.html$ http://immunocal.md/science/
RedirectMatch 301 ^/immunocal.and.breast_cancer\.php$ http://immunocal.md/breast-cancer/
RedirectMatch 301 ^/immunocal.and.lung_cancer\.php$ http://immunocal.md/lung-cancer/
RedirectMatch 301 ^/immunocal.and.skin_cancer\.php$ http://immunocal.md/cancer/

As you can see, the code is before the other redirects (these are the old redirects) and at the bottom of the list is the final redirect you gave me yesterday, which takes all the old pages to the new site.

What did I do wrong?
Thanks,
Dave

  • This reply was modified 4 hours, 28 minutes ago by  AITpro Admin.

Viewing all articles
Browse latest Browse all 12476

Trending Articles