REDIRECTING A WEB FOLDER DIRECTORY TO ANOTHER DIRECTORY IN HTACCESS

Redirecting within the same domain Using htaccess in your root level of your web server, how you redirect one page to another is: RewriteRule ^url-string-to-redirect$ http://www.yourdomain.com/your-new-url-string [R=301,L] Or Redirect 301 /path/to-old-url http://www.cyourdomain.com/path/to-new-url To redirect the contents of a whole directory to another use the below: RewriteRule ^subdirectory/(.*)$ /anotherdirectory/$1 [R=301,NC,L] To redirect the contents of a whole directory to the webserving root: RewriteRule ^subdirectory/(.*)$ /$1 [R=301,NC,L] To redirect the contents of a subdirectory to another domain but in the same subdirectory Redirect 301 /subdirectory http://www.anotherdomain.com/subdirectory Make sure that the opening of…