I have any problem on my wordpress site. My wordpress site's new domain is (ex:) "www.domain.com" and last domain is "www.domain2.com". I assigned new domain's nameserver address to old domain's nameserver address. But not working rewrite rule when entering old domain. My rule is:
RewriteCond %{HTTP_HOST} ^domain2.com$ [NC]
RewriteCond %{REQUEST_URI} ^/(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ https://domain.com/hello/$1 [L,R=301]