• Resolved hardik

    (@hardikp)


    Hi,

    I want to redirect my site to another domain. Also want to redirect /wp-admin and /wp-login.php to another domain by htaccess.

    Suppose,
    https://www.mysite.com is my existing site url and
    https://www.redirectsite.com I want to redirect on this site.

    I want to redirect,

    https://www.mysite.com  ->  https://www.redirectsite.com
    https://www.mysite.com/wp-admin  ->  https://www.redirectsite.com
    https://www.mysite.com/wp-login.php  ->  https://www.redirectsite.com

    This is my htaccess

    # 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

    Any one can help please.
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Site and admin redirect to new domain with htaccess’ is closed to new replies.