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?


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?