htaccess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • m5m5m5
    Senior Member
    • Dec 2006
    • 115

    [Forum] htaccess

    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:

    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]
    please note I have my forum located in /forums/ and I have CMS disabled. What code should I remove/keep/add? Thanks.
  • Octavius
    Senior Member
    • Jul 2010
    • 208
    • 4.2.X

    #2
    I've had this problem too.
    www.8thos.com

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎