htaccess

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fly4food84
    Member
    • Apr 2008
    • 38
    • 3.7.x

    htaccess

    I'm trying to configure my root htaccess file to:

    1.) Redirect my domain.com to domain.com/forums/index.php
    2.) Force the use of www.

    Any help is much appreciated.
  • eJM
    Senior Member
    • Sep 2004
    • 916
    • 3.8.x

    #2
    Try this:
    Code:
    RewriteEngine on
    RewriteCond %{HTTP_HOST} !^www\.domain\.com [NC]
    RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L]
    If you already have RewriteEngine on, you don't need another instance of it.

    Jim
    If my post was helpful to you, please take the time to register at my forum and ask a question you've always wanted to know about floors.
    www.TheFloorPro.com

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...