In this article I quickly show you where your account’s .htaccess file resides on the server, as well as how to edit it.
You can make similar changes in the Apache configuration file, but only with root access. That’s why the .htaccess file is very important to users on our Business Hosting accounts.
What is .htaccess?
The .htaccess file is a hidden text file that allows you to control the way visitors 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:
You can use your favorite FTP client to modify this file or follow the steps below to access it directly from cPanel:
- Login to your cPanel.
- Under the Files section, click on File Manager.
- Locate your .htaccess file, you may have to show hidden files
(click Settings–>Check the “Show Hidden Files (dotfiles)” box).
Congratulations, now you know how to locate, and edit your .htaccess file!
Did you find this guide helpful? When you’re an InMotion Web Hosting customer, you get full access to the vast library of our support documentation as well as world-class, 24/7 support.