Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Locating and Editing .htaccess on cPanel
#1
Locating and Editing .htaccess on cPanel

How to Locate and Create the WordPress .htaccess File on cPanel

Locating the .htaccess File

  1. Log into your cPanel account.Locate the Files section and click File Manager
  2.    
  3. Access the public_html directory. Click on your WordPress folder. In this case, it’s labeled as wp. Then, look for the .htaccess file.
  4.    
  5. If you can’t find the .htaccess file, go to the Settings on the upper right menu and tick the Show Hidden Files option to enable viewing.
  6. The system will begin to fetch your directories’ content, and you will soon see the .htaccess file on the list.
  7. Simply click on the file and check the Edit button to open it.

Important Notes

  • If you have more than one domain in your hosting plan, each domain will have its own .htaccess file in its public_html directory.
  • Since .htaccess is a server configuration file, messing up the code can cause server errors.
  • It is highly recommended to create a backup. This way, you can restore your WordPress site to its stable state whenever an error happens.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)