cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

redirect subdirectory to root

Hi how do I redirect any and all pages in a sub directory on my site in a folder /folder/ to the root of my site? Thanks.
1 REPLY 1
Moderator
Moderator

Re: redirect subdirectory to root

Hi @lisak8r, thanks for posting.

What you described can be done, but it would require custom scripting and custom configurations.

There are many ways to do what you described, but if you are using cPanel/linux hosting, a common way is to use url rewriting/redirects using a .htaccess file. Some general information on .htaccess files can be found here:

https://www.godaddy.com/help/what-is-htaccess-2504?

^Gary

Gary - GoDaddy | Community Moderator
24/7 Support | Check System Status