How to redirect a folder in htaccess?

by edmond_brakus , in category: Third Party Scripts , 6 months ago

How to redirect a folder in htaccess?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

by jasen_gottlieb , 6 months 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.

Related Threads:

How to block folder access to ftp with .htaccess?
How to redirect to separate folder in laravel?
How to redirect to separate folder in laravel?
How to redirect to https with .htaccess?
How to redirect url in .htaccess?
How to remove a redirect in .htaccess?