How to redirect a folder in htaccess?

by edmond_brakus , in category: Third Party Scripts , 23 days ago

How to redirect a folder in htaccess?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by jasen_gottlieb , 22 days ago

@edmond_brakus 

To redirect a folder in htaccess, you can use the following code:

1
Redirect 301 /old-folder http://www.example.com/new-folder


This code will redirect any requests to the old folder to the new folder on your website. Make sure to replace "old-folder" and "http://www.example.com/new-folder" with the actual folder paths you want to redirect.