• Skip to main content
  • Skip to primary sidebar

Technical Notes Of
Ehi Kioya

Technical Notes Of Ehi Kioya

  • About
  • Contact
MENUMENU
  • Blog Home
  • AWS, Azure, Cloud
  • Backend (Server-Side)
  • Frontend (Client-Side)
  • SharePoint
  • Tools & Resources
    • CM/IN Ruler
    • URL Decoder
    • Text Hasher
    • Word Count
    • IP Lookup
  • Linux & Servers
  • Zero Code Tech
  • WordPress
  • Musings
  • More
    Categories
    • Cloud
    • Server-Side
    • Front-End
    • SharePoint
    • Tools
    • Linux
    • Zero Code
    • WordPress
    • Musings
Home » Linux & Servers » How to Locate the .htaccess File on cPanel

How to Locate the .htaccess File on cPanel

By Editorial Staff Leave a Comment

There are lots of reasons why you would want to access your website’s .htaccess file. This very important file is used for URL redirection (or rewriting), enabling password protection, defining custom error pages, allowing or denying users, changing timezones, etc. Whatever the reason, you must first know where to find it on your host server.

This article explains how to find the .htaccess file on cPanel.

How to Locate the .htaccess File on cPanel

But first, what exactly is .htaccess? Simply put .htaccess (which means Hypertext Access) is an Apache file that is used by web servers to apply settings at a directory (folder) level. To stay on topic, this article will not provide a detailed discussion of .htaccess. If you would like a more detailed breakdown, check out my previous article on the subject.

Locating the .htaccess File on cPanel

To begin, Access your cPanel by visiting your domain URL with /cPanel appended to it. So, if your domain name is say, ficticiousdomain.com, the address you should visit would be ficticiousdomain.com/cpanel

Note: The method described above for accessing cPanel is a shortcut method. Not all web hosts may support that method. However, because of cPanel’s popularity, it is relatively easy to get your cPanel URL directly from your web hosting portal. Just look around whatever dashboard your web host provides and you should find the cPanel link pretty quickly.

Next, you have to fill in your credentials (username and password) to access cPanel.

Now let’s find the .htaccess file. Go to File Manager and open the public_html folder (if you don’t have a public_html folder, look for a www folder instead). This is your website’s root folder, and your .htaccess file lives inside this folder!

If you cannot immediately find the .htaccess file inside your root folder, the problem would likely be because of the default setting that keeps hidden files (like the .htaccess file), well, hidden.

To fix that, go to settings located at the top right-hand corner of your file manager. You will see a checkbox to Show hidden files. Ensure that the box is checked and press Save. All hidden files with a dot (.) prefixing them will now appear listed, including your .htaccess file.

You can now perform all the tweaks and configurations you planned to do inside the .htaccess file.

Found this article valuable? Want to show your appreciation? Here are some options:

  1. Spread the word! Use these buttons to share this link on your favorite social media sites.
  2. Help me share this on . . .

    • Facebook
    • Twitter
    • LinkedIn
    • Reddit
    • Tumblr
    • Pinterest
    • Pocket
    • Telegram
    • WhatsApp
    • Skype
  3. Sign up to join my audience and receive email notifications when I publish new content.
  4. Contribute by adding a comment using the comments section below.
  5. Follow me on Twitter, LinkedIn, and Facebook.

Related

Filed Under: Apache, Linux & Servers, Web Development, Zero Code Tech Tagged With: Apache, cPanel, htaccess, Web Development, Webmasters

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

23,733
Followers
Follow
30,000
Connections
Connect
14,568
Page Fans
Like
  • Recently   Popular   Posts   &   Pages
  • Actual Size Online Ruler Actual Size Online Ruler
    I created this page to measure your screen resolution and produce an online ruler of actual size. It's powered with JavaScript and HTML5.
  • How To Change A SharePoint List Or Library URL How To Change A SharePoint List Or Library URL
    All versions of the SharePoint user interface provide an option to change the title (or display name) of a list or library. Changing SharePoint library URL (or internal name), however, is not exactly very intuitive. We will discuss the process in this article.
  • WordPress Password Hash Generator WordPress Password Hash Generator
    With this WordPress Password Hash Generator, you can convert a password to its hash, and then set a new password directly in the database.
  • About
  • Contact

© 2022   ·   Ehi Kioya   ·   All Rights Reserved
Privacy Policy