Redirect a folder to another

To redirect a folder to another using .htaccess, create

RedirectMatch 301 ^/OLD_FOLDER/(.*)$ /NEW_FOLDER/$1

Or

RewriteEngine On
RewriteRule ^OLD_FOLDER/(.*)$ /NEW_FOLDER/$1 [R=301,NC,L]

Or

Redirect 301 /OLD_FOLDER /NEW_FOLDER

if new folder is on another domain, you can use https://new-domain.com/OLD_FOLDER

See Redirect

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *