Article 4WN7P problem in redirect old-url/path/ to new-url/path/ in htaccess

problem in redirect old-url/path/ to new-url/path/ in htaccess

by
aria_redhat
from LinuxQuestions.org on (#4WN7P)
Hello. I have 2 domains :

Old domain : http://wordpress.old-domain.com
New domain : http://new-domain.net

I can redirect old domain to new domain with bellow cods in htaccess.
PHP Code:RewriteCond %{HTTP_HOST} ^wordpress.old-domain.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.wordpress.old-domain.com$ [NC]
RewriteRule ^(.*)$ http://new-domain.net/$1 [L,R=301,NC]
Redirecting is done well on the main domain, But when I log into one of the WordPress menus (for example: news Menu), this redirect is not done.
PHP Code:wordpress.old-domain.com/news/
The url above should be redirected to the address below.
PHP Code:new-domain.net/news/
But this redirect is not done. Why? Where is my problem?latest?d=yIl2AUoC8zA latest?i=pyS-SjKtJyc:O2MwV_nJWuA:F7zBnMy latest?i=pyS-SjKtJyc:O2MwV_nJWuA:V_sGLiP latest?d=qj6IDK7rITs latest?i=pyS-SjKtJyc:O2MwV_nJWuA:gIN9vFwpyS-SjKtJyc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments