Home
/
Website Help
/
Other
/
How can I redirect mydomain.com to mydomain.com/folder?

How can I redirect mydomain.com to mydomain.com/folder?

To create the redirect from mydomain.com to mydomain.com/folder add the following rules at the top of the .htaccess file located in the public_html folder for your website:

RewriteEngine On
RedirectMatch ^/$ /subfolder/

In the above, replace “subfolder” with the name of the folder you want to redirect visitors to.

If there is no .htaccess file in the public_html folder you can create one using Site Tools > Site >File Manager.

Share This Article