How to Edit Your .Htaccess file


Avoid this company at all costs – We been using #Justhost for the last 2 years. suddenly my site got suspended because they claim that we are “utilizing an excessive amount of system resources”. OK, so our traffic is getting bigger which is a normal trend in the online world. So you would expect that they would send an email and tell you have 24 Hours to move your site to a dedicated server. NO, THEY SUSPENDED OUR SITE!!! I IMMEDIATELY opened a ticket and called them over 5 times in the last 24 hours, and this is the answer i keep getting, WE ARE SORRY BUT THE DEPT THAT HANDLE THESE ISSUES CANNOT BE REACHED BY PHONE, AND THE SUPPORT TEAM THAT ANSWERS THE PHONE, DON’T HAVE ANY CONTACT WITH THEM. WOW!!! I have since sent emails , called open a ticket and NOT ONE SINGLE WORK FROM MYSTERIES CAVE OPERATING DEPT. Even when I made it clear we will do whatever it takes to get the site back up even if we had to pay x10 more for a dedicated server, money is not an issue. Can you imagine your site going down, and you can’t do anything about. well that’s #Justhost for you. Never Again!


Learn how to edit your .htaccess file by using the cPanel File Manager or an FTP client.

The .htaccess file is a hidden file that is used by the hosting server for several purposes:

Examples include

Redirects
Security
Website configuration

The file is detected and processed by the Apache server
How do you find the .htaccess file? The .htaccess file is generally in the root of the folder where you’re saving your website files. Note that there can be multiple .htaccess files. They can exist in folders that are part of your website files. Make sure to select the correct file to edit.

In this tutorial we are going to show you how to navigate to the file and then open it using either the cPanel File Manager or an FTP client.
NOTE: As with any change, make sure to back up your files BEFORE you make any changes.

Using the cPanel File Manager

First login to the cPanel
Go to the File Manager.
Make sure to double-check the settings so that you can see hidden files
Go to the relevant .htaccess file.
Select the file
Use the edit options within File Manager
Make sure to save your changes.

Using an FTP client

Login to the account
Find the .htaccess file
Download it and then edit the file with a text editor. Save your changes.
Apply the changes to your website by uploading the file back into the location where you downloaded it. Make sure you overwrite the file.

InMotion Hosting was founded in 2001 and provides personal and business web hosting for everyone! For more information about InMotion Hosting and the services we provide see here:

http://www.inmotionhosting.com

InMotion Hosting

5 Comments
  • Girish kumar
    Posted at 03:37h, 07 October

    Please Example .htaccess inner contents, what exactly they have written in file and what it means….

  • Dresean Ryan
    Posted at 21:43h, 27 December

    best vid on the internet

  • Geoffrey Idun
    Posted at 09:45h, 31 July

    I was expecting a video showing me how to edit (as in coding) the .htaccess file, not how to find and open it. If you have a video that shows how to add a script to update the PHP version, could you share it please? Many thanks

  • ridefreeordie420
    Posted at 21:17h, 10 August

    When I open my .htaccess file it looks nothing like the one on this video. Looks more like…
    Options None

    <Limit GET POST>
    order deny,allow
    deny from all
    allow from all
    require group authors administrators
    <Limit>
    <Limit PUT DELETE>
    order deny,allow
    deny from all
    <Limit>
    AuthType Basic
    AuthName MYURL

    Where do I edit in this case?

  • Akmal Khan
    Posted at 12:12h, 27 August

    HOw can I remove wordpress site and install html and css to cpanel can you guide me pls.