Hi, I'm having trouble redirecting domain.com to domain.com/forums and thought I'd post the htaccess (root) here for a solution from you guys... please have a look:
please note I have my forum located in /forums/ and I have CMS disabled. What code should I remove/keep/add? Thanks.
Code:
# -FrontPage- IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti* <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName myDOMAIN.com AuthUserFile /home/myDOMAIN/public_html/_vti_pvt/service.pwd AuthGroupFile /home/myDOMAIN/public_html/_vti_pvt/service.grp RewriteEngine on # If you are having problems or are using VirtualDocumentRoot, uncomment this line and set it to your vBulletin directory. # RewriteBase /forum/ RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # Forum RewriteRule ^threads/.* showthread.php [QSA] RewriteRule ^forums/.* forumdisplay.php [QSA] RewriteRule ^members/.* member.php [QSA] RewriteRule ^blogs/.* blog.php [QSA] ReWriteRule ^entries/.* entry.php [QSA] RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] # MVC ErrorDocument 404 /forums/ RewriteCond %{HTTP_HOST} ^myDOMAIN.com$ [OR] RewriteCond %{HTTP_HOST} ^www.myDOMAIN.com$ RewriteRule ^/?$ "http\:\/\/www\.myDOMAIN\.com\/forums" [R=301,L]
Comment