MyBB Community Forums
[Performance] why do subdirectory and subdomain work simultaneously - 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: [Performance] why do subdirectory and subdomain work simultaneously (/thread-164451.html)



why do subdirectory and subdomain work simultaneously - Hovatek - 2014-12-21

I created a forum subdomain.site.com and it works fine. I noticed that site.com/subdomain also works. this is bad for seo. what can be done to make only subdomain version work


RE: why do subdirectory and subdomain work simultaneously - .m. - 2014-12-21

you can use redirect rule in .htaccess file (assuming that your forum is on Apache server)
Redirect 301 /subdomain/ http://subdomain.site.com



RE: why do subdirectory and subdomain work simultaneously - Hovatek - 2014-12-21

(2014-12-21, 01:24 AM).m. Wrote: you can use redirect rule in .htaccess file (assuming that your forum is on Apache server)

Redirect 301 /subdomain/ http://subdomain.site.com

thanks.
how do I enforce the search engine friendly url format?
such that if someone visits subdomain.site.com/showthread.php?tid=x , it'll be automatically redirected to subdomain.site.com/thread-x.html
I already have the search engine friendly url setup. just dont want duplicate content issues