1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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
    Home Page:
    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:
    149
    Likes Received:
    36
    Occupation:
    Nothing!
    Location:
    Macau
    Code:
    http://htaccess-guide.com/
    read that, shidd !!!
     
  3. CredibleZephyre

    CredibleZephyre Registered Member

    Joined:
    Jun 10, 2013
    Messages:
    97
    Likes Received:
    27
    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:
    442
    Likes Received:
    72
    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,535
    Likes Received:
    257
    • 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.