How to redirect the domain to sub-directory?

Hi all,

My website (forum) is in a sub-directory, so this is how the site path is in cPanel: /public_html/forums, and now my domain is showing the sub-directory but it does not auto redirect to the folder where the website files are located. I want either www.domain.com OR domain.com auto redirect to https://www.domain.com/forums/.

Sorry for the rookie question. I am pretty new to Xenforo and Apache.

Thanks
 
Be careful with that redirect and test it. Make sure it's a page for page redirect, and not one that directs everything to the home page. If it does redirect only to the home page, you're going to lose ranking in search engines.
 
Back
Top Bottom