How to redirect a particular Directory completely to another Directory via htaccess?

Hello Friends!!!

How to redirect a particular Directory completely to another Directory via htaccess? [Important| Updated June 2019]

 

Suppose i have a Folder XYZ and inside it i have 1.html and now If i want to redirect this completely to another destination then i have to add a simple line in my .htaccess file given below:

Redirect 301 /xyz/1.html http://yourdomain.com/newFOLDER/file.html


You have to write this code in .htaccess file inside public_html


For more information you can contact RedserverHost

best linux hosting solutions from redserverhost
cheap linux hosting


Hope this helps you!!!


Thanks for Reading!!!


Tags: cheap linux hostingbuy linux hostingcheap reseller hostingbuy reseller hostingbest reseller hostingcheap web hostingcheapest web hostingcheapest reseller hosting,  cheap reseller hostcheap linux hostcheapest linux hostingbest linux hostingbest web hosting