There was a problem loading the comments.

How to Access Your .htaccess File

Support Portal  »  Knowledgebase  »  Viewing Article

How to Access Your .htaccess File

Note: Making changes to your .htaccess file may cause issues with your current website if it is not configured correctly. Create a backup copy of the file before proceeding to make any changes.

 

Click here for cPanel instructions.

Click here for DirectAdmin instructions.

 

Follow these steps to access the .htaccess file in cPanel:

 

1. Log in to your cPanel account.
For instructions on how to log in to your cPanel account, please click here.

e67bc52bc40656261a64477d109e88c36200cd6ec44572d26e421abce763aa4abd741ae6f2174bef?t=16a6aeb0a7b17c76830f158aac1b2d47

 

2. Under the Files section, click File Manager.
 fe4e94a3d2dcce54a67a988b1b3e61fa4ece387f0068caeb09becc7c4d33c286ef1d3b17ca975803?t=b9c4998a338e0c7341fa73dc4d22bf36

3. The cPanel File Manager will open in a new tab.

6ff54898853733e290a9f2762e1d88467d5db458e6fb72bd60a93f7eb7bb058c87cdf1c365329cd6?t=76242bc5e900d0df00e7956a813d9e37


4. Navigate to the directory where your website files are located. You can often find them in the public_html folder.

620a4df6fc784d39e8143fa5123ef6450ae4a66f67ed0fd22d0403c08aec556ca0fa037d26f2203b?t=0ee41a48cd6cca0a9c870a6b88a91d3e

 

5. If the .htaccess file does not show, click the Settings button in the top right corner.

a27dadbc67fcaa6f281c1f6daf671357ba903885f34b1ec3a9d9a984f4d747b0f2cd4250634367e0?t=e1ad1ea2a3ab7ea6751d520d866317e8

6. A popup window will open. Enable the Show Hidden Files (dotfiles) option, then click the Save button.

cf516fbbf8727ef8492cc0d758021c1e808fdb91f66f213e4e075782585e54cbba29654d39eeb885?t=355b7344e964cfc64c08a411e2d9e839

 

7. You will be able to see the .htaccess file. If it does not exist, create a new one.

0d0d0e2eed2456fb25fc14bfd68d77428a4fab5d0734a7f18ebac0a18bbccadad9d09e70b02df979?t=0e48a1a1c58d843021ffea789f5e605d

 

 

Follow these steps to access the .htaccess file in DirectAdmin:

 

1. Log in to your DirectAdmin account.
For instructions on how to log in to your DirectAdmin account, please click here.

93fa78453a69c8622e20602c56d427ffbc75b0d076fae439ca797766e8b0a04e417dcdf46c774d2d?t=edf763a81977cd2c9a4f74c2f4d2f115

 

2. Under System Info & Files, click File Manager.

e4adb8e8f2284c73f73377160d36ea377502e5dc5807292cf9457431b1900139590ab3791cb15236?t=88ca491853b0426bde899b068323a693

 

3. The DirectAdmin File Manager will open in a new tab.

316dca57fa1d666bd767b83a0950dfd1acebde527d43fdcc2b3a7e08bfbb9bd9de52c715adaa2e2f?t=2198e00fad905c7aa0c946ffd5ea18d5

 

4. Navigate to the directory where your website files are located. You can often find them in the public_html folder. You will be able to see the .htaccess file. If it does not exist, create a new one.

7ad6b976efa283c5090a5839bb915c895b9a8d0200d67e673d74bc16f56a3b926de4ce7d66463431?t=ee60097388a2d21da9b4b9487d64d287

Did you find this article useful?