What is the use of htaccess file

Discussion in 'Site & Server Administration' started by Allthebest, May 5, 2010.

  1. #1
    Can someone tell me about htaccess file. what is the use of htaccess file and how it is created.
     
    Allthebest, May 5, 2010 IP
  2. eSpenders.com

    eSpenders.com Peon

    Messages:
    1,567
    Likes Received:
    20
    Best Answers:
    0
    Trophy Points:
    0
    #2
    eSpenders.com, May 5, 2010 IP
  3. hans

    hans Well-Known Member

    Messages:
    2,923
    Likes Received:
    126
    Best Answers:
    1
    Trophy Points:
    173
    #3
    like everything important
    there is an authority site specually for .htaccess
    http://www.htaccess-guide.com/
    .htaccess file is created with a text editor and can be placed site wide in the domain root folder
    or with folder and sub-folder validity .htaccess can be placed in any folder of subfolder of a web site

    in most brief words
    in your .htaccess you can control access to files, folders, file extensions or place redirect or rewrite rules as well as hotlink protections
    you can protect your site or individual parts or files from abuse by certain IP or domains or clients
    you also can control expiration = cache control of files to improve your pagespeed

    read the guide and start simple
    because
    if you have ONE single wrong character or one important missing
    you may screw your entire server sitewide and produce a 500 error
    know what you do before doing
    and test whenever you have done a change in your .htaccess
     
    hans, May 5, 2010 IP
  4. companyofindia

    companyofindia Peon

    Messages:
    105
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    ht.access file is very important to give the instruction to Google crawler. It is use to change to inner page url name.
     
    companyofindia, May 5, 2010 IP
  5. Allthebest

    Allthebest Peon

    Messages:
    530
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thanks for the reply but i wants some more information about Htaccess file.
     
    Allthebest, May 5, 2010 IP