I am trying to move my whole website through .htaccess doing this
#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ https://newdomain/$1 [R=301,L]
Some of the links from the old website are not exactly the same of the new website, so I should manually edit this rule to make an exception from olddomain/link to newdomain/new-link
I tried the rules but it didn’t work.
Thanks in advance for your help.
2
Answers
I solved like this
Thanks.
Ciao.
Be sure your custom rules are written before your global redirection and are tagged Last [R=301,L]
exemple :
Also, try in a fresh (private ? or new ) browser window : in some browsers , http redirection are cached