Is it important to have .htaccess file

Discussion in 'Programming' started by sprabhu, Mar 6, 2009.

  1. #1
    Is it important to have .htaccess file in wordpress and if yes what is the main purpose of that.
     
    sprabhu, Mar 6, 2009 IP
  2. buldozerceto

    buldozerceto Active Member

    Messages:
    1,137
    Likes Received:
    43
    Best Answers:
    0
    Trophy Points:
    88
    #2
    The main purpose would be for SEO and restricing access to certain files and directories as well as other things.
    I think wordpress could run without htaccess, but you won't have pretty urls.
     
    buldozerceto, Mar 6, 2009 IP
  3. ccoonen

    ccoonen Well-Known Member

    Messages:
    1,606
    Likes Received:
    71
    Best Answers:
    0
    Trophy Points:
    160
    #3
    .htaccess gives you site-specific or even user-specific (with wildcard dns's) power, so you can grant access to folders, or setup modRewrite to have folder to page mappings using regex.
     
    ccoonen, Mar 6, 2009 IP
  4. cveks

    cveks Member

    Messages:
    141
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    28
    #4
    .htaccess gives you ability to tweak your website - so it does good things
     
    cveks, Mar 7, 2009 IP