What is the function of .htaccess?

Discussion in 'White Hat SEO' started by iamtheroon, Jan 25, 2015.

  1. iamtheroon

    iamtheroon Newbie

    Joined:
    Aug 10, 2014
    Messages:
    22
    Likes Received:
    0
    Occupation:
    affiliate marketer
    Location:
    chasegamp
    Hi
    can anyone tell me why .htaccess is install in site.
    How to add .htaccess to my site?
     
  2. kyoka12

    kyoka12 Junior Member

    Joined:
    Jul 10, 2014
    Messages:
    152
    Likes Received:
    38
    Occupation:
    Nothing!
    Location:
    Macau
    Code:
    http://htaccess-guide.com/
    read that, shidd !!!
     
  3. CredibleZephyre

    CredibleZephyre Junior Member

    Joined:
    Jun 10, 2013
    Messages:
    103
    Likes Received:
    28
    The htaccess, among other things, is where you are going to implement redirects. Anytime a URL is requested it goes through the .htaccess first. Additionally, that's where you're going to put global rules for 'www' to non-www etc.
     
  4. metallosphere

    metallosphere Newbie

    Joined:
    Jan 29, 2015
    Messages:
    7
    Likes Received:
    0
    It is like a better version of robots enabling you to control a number of things. Including restricting access to your sites and redirecting various sections in a controlled way. It is also used to re-write urls.
     
  5. g0han

    g0han Jr. VIP Jr. VIP

    Joined:
    Jan 12, 2014
    Messages:
    506
    Likes Received:
    86
    Home Page:
    Personally I use mine to setup my 404 redirects, and also to remove the extension from website urks :) it has many purposes
     
  6. kaptain1

    kaptain1 Junior Member

    Joined:
    Jan 30, 2015
    Messages:
    102
    Likes Received:
    16
    Occupation:
    Freelance
    its the control unit of your website..
     
  7. Red Giant

    Red Giant Jr. VIP Jr. VIP

    Joined:
    Nov 1, 2013
    Messages:
    1,752
    Likes Received:
    295
    Gender:
    Male
    • Thanks Thanks x 1
  8. Greyhoundseo

    Greyhoundseo Newbie

    Joined:
    Feb 3, 2015
    Messages:
    7
    Likes Received:
    1
    Its a simple text file at the root with that name without any extension. Not need but helpful for various commands.