Strange .htaccess command please advise

Discussion in 'WordPress' started by shockwave187, Sep 12, 2011.

  1. #1
    Hello

    I found a strange command in my .htaccess file and I don't know what it does. Can someone tell me what this is?

    RewriteRule ^index\.php$ - [L]


    Thanks

    Shock
     
    shockwave187, Sep 12, 2011 IP
  2. olddocks

    olddocks Notable Member

    Messages:
    3,275
    Likes Received:
    165
    Best Answers:
    0
    Trophy Points:
    215
    #2
    That is not a strange command. It simply means to rewrite whatever URL starting with index.php.
    Ignore it and i guess its wordpress default.

    Actually wordpress stores all .htaccess rules in database. If you are still worried, go to permalinks settings and update the rules.
     
    olddocks, Sep 13, 2011 IP
  3. adbox

    adbox Well-Known Member

    Messages:
    906
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    155
    Digital Goods:
    1
    #3
    Yeah I think it tells the browser not to display folder/index.php and rather display folder/
     
    adbox, Sep 14, 2011 IP
  4. tupacmo

    tupacmo Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    this is a default set by wordpress not to display index.php
     
    tupacmo, Sep 14, 2011 IP