What is the use of .htaccess file and how to make it?

Discussion in 'Search Engine Optimization and Marketing' started by phpassignmenthelp, Dec 3, 2016.

to remove all ads.
  1. phpassignmenthelp

    phpassignmenthelp Member

    Messages:
    34
    Hi All !! What is the use of .htaccess file and how to make it? please suggest me the steps for making .htaccess file.
     
  2. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,611
    All you need to know about .htaccess straight from the horses mouth.

    Assuming your server is running Apache on Unix/Linux and you have shell access.

    login to a shell session

    change directory to the site 'document root folder and enter 'touch ./.htaccess' (without the quotes) into the shell window.

    File made. And if that isn't it ... More info needed.
     
  3. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,611
    By the way;

    Do you realise, that by asking these relatively 'newbie' question while claiming to represent a 'development company' with your displayed signature links. You are, by association, also making THEM look like they know nothing at all?
     
  4. joseph franklin

    joseph franklin New Member

    Messages:
    7
    It is used to allow permissions to your website. it is a nice file.
     
  5. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,611
    Absolutely WRONG!!
     
  6. Mark Spidle

    Mark Spidle New Member

    Messages:
    6
    the .htaccess file tells the apache web server to do various things, like redirects, etc. If you are using cpanel for your control panel then use the File Manager and just create a new file in the root of your public_html named .htaccess Then you can edit it with whatever requirements you need.
     

Share This Page