.htaccess Question

Discussion in 'Site & Server Administration' started by rlineker, Feb 25, 2007.

  1. #1
    rlineker, Feb 25, 2007 IP
  2. rodney88

    rodney88 Guest

    Messages:
    480
    Likes Received:
    37
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Create a .htaccess file in your root dir (i.e. http://www.xldesigns.net/.htaccess) that contains the following:
    Options +Indexes
    Options +FollowSymlinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^xldesigns.net$
    RewriteRule ^(.*)$ http://www.xldesigns.net/$1 [R=301]
    Code (markup):
     
    rodney88, Feb 25, 2007 IP
    rlineker likes this.
  3. rlineker

    rlineker Well-Known Member

    Messages:
    1,534
    Likes Received:
    172
    Best Answers:
    0
    Trophy Points:
    160
    #3
    Thanks for the help.

    Rep on its way.

    Ryan
     
    rlineker, Feb 25, 2007 IP
  4. swiftmed

    swiftmed Peon

    Messages:
    1,070
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    0
    #4
    thanks that helped me too :) I'll rep you too, I've been trying to get how to do that for my site for about a month now, I never asked for help here guess I didnt have to. Thanks!
     
    swiftmed, Feb 25, 2007 IP
  5. tespio

    tespio Peon

    Messages:
    16
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    That is a good solution. Props to Rodney. On certain hosts mod_rewrite has been disabled (paranoid settings). I used plain redirect (js) or php redirect using header() function. But on paranoid settings env php is also disabled :D
     
    tespio, Feb 26, 2007 IP