Viewing 1 replies (of 1 total)
  • Hello jb317, Use following code in your .htaccess

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase https://www.olddomain.com/
    
    RewriteRule !^(wp-admin(/.*))?$ https://www.newdomain.com/page1%{REQUEST_URI} [L,NC,NE,R=301]
    
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . https://www.olddomain.com/index.php [L]
    </IfModule>
Viewing 1 replies (of 1 total)
  • The topic ‘How to access admin after 301 redirect?’ is closed to new replies.