View Full Version : Redifect forums to main .com
castleconnell
09-10-2013, 11:57 AM
HI all, need some help here, I have already crashed the site once today :)
My forum is installed at public_html/forums with the URL domain.com/forums/.
When I go to www.domain.com, I want to load the forums right away but cant seem to get the htaccess file correct.
Any help be great folks,
Regards
CC
castleconnell
09-11-2013, 09:12 AM
Sorted with the below:
RewriteEngine on
RewriteCond %{REQUEST_URI} ^/$
RewriteRule (.*) www.domain.com/forums [R=301,L]
castleconnell
09-12-2013, 12:44 PM
Still have a problem on this, I am now getting CORS error in my console
XMLHttpRequest cannot load http://www.troutandsalmonfishingforum.com/forums/ajax/api/phrase/fetch. Origin http://troutandsalmonfishingforum.com is not allowed by Access-Control-Allow-Origin.
What do I add to the above htaccess file to clean this
marco_kellershoff
09-12-2013, 09:21 PM
This will probably work
RewriteEngine on
RewriteRule ^$ /forums/ [R=301,L]
Just put this into a .htaccess and place it in your public_html/htdocs folder
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.