InMotion Hosting Support Center

In this article I'm going to quickly show you where your account's .htaccess file resides on the server, and how to edit it.

What is .htaccess?

The .htaccess file is a hidden text file that allows you to control the way visitors are able to access your site. Some common uses of the .htaccess file would be restricting access to certain files, or redirecting URLs.

You can review our full .htaccess file reference list for more examples of what you can do with a .htaccess file.

Where is my .htaccess file?

By default you should have a .htaccess file created on your account in the following directory:

/home/userna5/public_html/.htaccess

You can use your favorite FTP client to modify this file, or follow the steps below to access it directly from cPanel:

  1. Login to your cPanel.
  2. Under the Files section, click on File Manager.
  3. Select the Document Root for: option, and choose your domain from the drop-down.
  4. Ensure that Show Hidden Files is selected.
  5. Then click Go.
  6. file-manager-hidden-files
     
  7. Right-click on the .htaccess file and select Edit.
  8. file-manager-htaccess-edit
     
  9. If your .htaccess file didn't exist already during the previous step, click on New File at the top-left, name the file .htaccess, and finally set the directory for the file to be created to /public_html/ or the document root of your site.
  10. file-manager-htaccess-create
     
  11. You might have a text editor encoding dialog box pop-up, you can simply click on Edit.
  12.  

 

You should now know where to locate your .htaccess file on your account, and how you can make edits to it.

Support Center Login

Social Media Login

   
Social Login Joomla

Related Questions

Here are a few questions related to this article that our customers have asked:
I cannot remember my .HC Custom WP-Admin URL slug word
Would you like to ask a question about this page? If so, click the button below!
Ask a Question
n/a Points
2015-01-05 4:02 am

first of all thank you so much,

you are did a great job with your suggestion..

 

 

 

n/a Points
2015-01-12 12:35 pm
No improvement needed
n/a Points
2015-01-21 7:25 am
Its just right. up to the point.
n/a Points
2015-01-28 9:27 am

You Desere a salute....I was wandering since last 3 days...and you did the miracle by simpliying this.

 

Thanks

n/a Points
2015-02-20 12:30 am
Works perfectly for host monster :)
n/a Points
2015-03-01 10:10 pm
I think the article was the best it can be. Thanks!
n/a Points
2015-05-02 2:20 pm
Greate tips . i appriciate thank you boss
n/a Points
2015-07-05 1:47 pm
great!!

Post a Comment

Name:
Email Address:
Phone Number:
Comment:
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

8 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!