MyBB Community Forums

Full Version: 301 redirect through .htaccess
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
My mybb directory is in root directory. And I am seeing that it has two different .htaccess files (one .htaccess and ngix).

I want to redirect a sub-domain to the root directory. How should I do it? And also the site is now http so I will be converting it to https through letsencrypt service so if you guys please provide me the information about redirecting the sub-domain to the root directory (which is with https) then it will be really helpful.
(2019-01-21, 06:43 AM)vk_knight Wrote: [ -> ]My mybb directory is in root directory. And I am seeing that it has two different .htaccess files (one .htaccess and ngix).

I want to redirect a sub-domain to the root directory. How should I do it? And also the site is now http so I will be converting it to https through letsencrypt service so if you guys please provide me the information about redirecting the sub-domain to the root directory (which is with https) then it will be really helpful.

You should rename the htaccess.txt file. Ignore the nginx one, unless you're using nginx instead of Apache. 

Make sure that .htaccess file is in the ROOT directory of your website.

[Image: 91f0bfeec64a99665dc1b27989f986f5.png]
Thanks, Serpius you are just great as always.