How to redirect the domain to sub-directory?

Capital Cichlid

New member
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
 

Capital Cichlid

New member
I resolved this issue by creating a redirect in cPanel. I thought this might be a .htaccess task but found an easier way.

Thanks
 

MySiteGuy

Well-known member
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.
 
Top