• Skip to main content
  • Skip to primary sidebar

Technical Notes Of
Ehi Kioya

Technical Notes Of Ehi Kioya

  • Forums
  • 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

February 20, 2020 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

25,822
Followers
Follow
30,000
Connections
Connect
14,617
Page Fans
Like

POPULAR   FORUM   TOPICS

  • How to find the title of a song without knowing the lyrics
  • Welcome Message
  • How To Change Or Remove The WordPress Login Error Message
  • The Art of Exploratory Data Analysis (Part 1)
  • Getting Started with SQL: A Beginners Guide to Databases
  • Replacing The Default SQLite Database With PostgreSQL In Django
  • How to Implement Local SEO On Your Business Website And Drive Traffic
  • 100% Disk Usage In Windows 10 Task Manager – How To Fix
  • Setting up an Ecommerce page: WordPress (WooCommerce) vs Shopify
  • What Is HTTPS? And Why Should You Care?
  • 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.
  • Allowing Multiple RDP Sessions In Windows 10 Using The RDP Wrapper Library Allowing Multiple RDP Sessions In Windows 10 Using The RDP Wrapper Library
    This article explains how to bypass the single user remote desktop connection restriction on Windows 10 by using the RDP wrapper library.
  • 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.
  • Forums
  • About
  • Contact

© 2021   ·   Ehi Kioya   ·   All Rights Reserved
Privacy Policy