How to redirect domain path to other domain path using .htaccess?

Viewed 93
2 Answers

Could you please try following, written with shown samples. Please make sure to clear your browser cache before testing your URLs.

RewriteEngine on
RewriteRule ^test/(.*)/?$ https://google.com/dl/$1 [R=301,NC,L]

You can try, you will find 100% solution, you must add below 3 lines to project's root folder .htaccess file

RewriteEngine on
RewriteBase /
RewriteRule (.*) http://www.new-domain.com/$1 [R=301,L][/php]
Related