Redirect URL's from subfolder to root directory


All the files and subfolders that used to make up our old Flash website do not exist anymore and so the URL paths to all the pages are broken.



We could use help writing a Redirect for specific URL's as well as catch all rewrite rule for subfolders to redirect to the base domain / URL.



ex.) Specific URLs



Any file path or image/asset or page url within these subfolders redirect to root domain



New site is built with the latest version of Wordpress / Apache / PHP



EDIT



Current .htaccess code



The below .htaccess rewrite rule will work for you



The online working code for the same is at .htaccess tester



The above code will



Redirect specific url's like below to root domain



Redirect particular subfolders like below to room domain



You can use "https://wordpress.org/plugins/simple-301-redirects/" Simple 301 Redirects plugin for the same.






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

The Dalles, Oregon

眉山市

清晰法令