To redirect a folder to another using .htaccess, create
1 |
RedirectMatch 301 ^/OLD_FOLDER/(.*)$ /NEW_FOLDER/$1 |
Or
1 2 |
RewriteEngine On RewriteRule ^OLD_FOLDER/(.*)$ /NEW_FOLDER/$1 [R=301,NC,L] |
Or
1 |
Redirect 301 /OLD_FOLDER /NEW_FOLDER |
if new folder is on another domain, you can use https://new-domain.com/OLD_FOLDER See Redirect […]