.htaccess help needed, I don't understand this code...

Discussion in 'HTML & Website Design' started by sandrodz, May 16, 2007.

  1. #1
    ok, when I look into my .htaccess file I've this, I don't get the first part, do I need to have that? I only added www rewrite - the rest is from host.

    # -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 www.flunkme.com
    AuthUserFile /home/sandrodz/public_html/_vti_pvt/service.pwd
    AuthGroupFile /home/sandrodz/public_html/_vti_pvt/service.grp

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^flunkme\.com$
    RewriteRule ^(.*)$ http://www.flunkme.com/$1 [R=301,L]
     
    sandrodz, May 16, 2007 IP
  2. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #2
    should I remove first part?
     
    sandrodz, May 16, 2007 IP
  3. Davidj

    Davidj Peon

    Messages:
    124
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    sandroz,

    There's no reason to remove the first part. The first part handles your http authentication and prevents certain files from being downloaded.

    Leave it in place :)
     
    Davidj, May 16, 2007 IP
  4. sandrodz

    sandrodz Peon

    Messages:
    1,482
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    okay, thx :)

    I have following rewrite rule in my htaccess of another directory, so do I add that one below? or do I blend them?

    is this correct:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /college-guide/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /college-guide/index.php [L]
    </IfModule>

    # END WordPress

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^flunkme\.com$
    RewriteRule ^(.*)$ http://www.flunkme.com/$1 [R=301,L]
     
    sandrodz, May 16, 2007 IP