MyBB Community Forums
www. extension to my url - 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: www. extension to my url (/thread-225428.html)



www. extension to my url - platinum983 - 2019-11-24

How can i add www extension to mybb forum. I verified page on search.google.com and installed google SEO plugin.
Any help would be aprreciated  Big Grin


RE: www. extension to my url - User 129272 - 2019-11-24

(2019-11-24, 07:14 PM)platinum983 Wrote: How can i add www extension to mybb forum. I verified page on search.google.com and installed google SEO plugin.
Any help would be aprreciated  Big Grin
You need to set up a CNAME DNS record where www.yourdomain.tld is an alias of yourdomain.tld.
If you want the website to always have www, and not respond to both www.yourdomain.tld and yourdomain.tld without redirecting you to the www version, add this to your .htaccess:
Quote:RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]



RE: www. extension to my url - Ben - 2019-11-24

Worth noting you would also need to update the Board URL setting in the ACP to include www. Big Grin


RE: www. extension to my url - platinum983 - 2019-11-24

Sorry for spamming, but my main goal is to find my forum on google with 4-5 keywoard. 
How can i achieve that?


RE: www. extension to my url - Ben - 2019-11-24

(2019-11-24, 07:36 PM)platinum983 Wrote: Sorry for spamming, but my main goal is to find my forum on google with 4-5 keywoard. 
How can i achieve that?

Check out my response on https://community.mybb.com/thread-225424-post-1339028.html#pid1339028