MyBB Community Forums

Full Version: redirect forum URL?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

I have one problem relating to the URL of my forum. In setting of ACP i have changed the URL to http://www.digitaldiscuss.net from http://digitaldiscuss.net but i want to redirect http://digitaldiscuss.net to http://www.digitaldiscuss.net so to do itm

Thank you.
you can use .htaccess rewrite rule similar to below
Rewritecond %{http_host} ^digitaldiscuss.net [NC]
Rewriterule ^(.*)$ http://www.digitaldiscuss.net/$1 [r=301,NC]
I have to find this code or i have to add it? because i have installed plugin called Google SEO and have updated the .htaccess file.
Google SEO will redirect URLs of items such as threads, forums, announcements, etc. but not anything else (such as index, portal, ...). For those you need to add a rule to your .htaccess

I use this:

	RewriteCond %{HTTP_HOST} !^www\.yourhost\.tld$ [NC]
	RewriteRule ^(.*)$ http://www.yourhost.tld/$1 [L,QSA,R=301]
so i have to add this at the end of the file and it will redirect my URL?
^ yes, you can add the rewrite rules at end of .htaccess file
actually its better to put the redirects first and regular rewrite rules later