MyBB Community Forums
[How To?] 301 redirect through .htaccess - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: [How To?] 301 redirect through .htaccess (/thread-221609.html)



301 redirect through .htaccess - vk_knight - 2019-01-21

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.


RE: 301 redirect through .htaccess - Serpius - 2019-01-21

(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]


RE: 301 redirect through .htaccess - vk_knight - 2019-01-22

Thanks, Serpius you are just great as always.