How To Create Or Edit Htaccess File In cPanel?

How To Create Or Edit Htaccess File In cPanel?

The .htaccess file contains several directives (instructions) that guide the server on how to behave in certain scenarios and directly control your website functions. There are some common directives like redirects and rewriting URLs that may be found in the .htaccess file. There are many scripts and content management systems like WordPress, Joomla, and Magento that add directives to the .htaccess so all functions can run smoothly. you’ll get to edit the .htaccess file for various purposes.

Today we’ll show you ways to make or edit .htaccess files in your cPanel file manager.

Also Read: What is cPanel?

Editing existing .htaccess file

Step 1: Login to your cPanel.

Step 2: Under the files section, click on the File Manager option.

Step 3: Go to the public_html folder.

How To Create Or Edit Htaccess File In cPanel

Step 4: Show hidden files from the settings.

Step 5: If you have an existing .htaccess file, you will see in the public_html folder.

Step 6: Right click on the .htaccess file and click on the Edit menu.

Step 7: Open the file by clicking on the Edit button.

Also Read: Most Popular Control Panels.

Creating new .htaccess file

Step 5: Click on the New File option in the top left corner.

Step 6: Write the file name as .htaccess in the New File Name: field and click on the Create New File button.

File name is htaccess file

Step 7: Now you can write or edit .htaccess file.

You can also create your .htaccess file on your local computer and upload it to the file manager.

Also Read:How To Change PHP Versions And Settings Using PHP Selector?

Create A Beautiful Website

You want to create a website for your business click the below button.

Buy Best Hosting For Website

Hostguid listed many hosting plans so you can easily compare many hosting companies hosting packages for your website.

Join Our Telegram Group

Upcoming hosting and SSL offers and news updates here. We can try to solve your doubt regarding any problem like Domain, Hosting, SSL certificate, etc. And News update here.

Frequently Asked Question

Share your love
Host Guid
Host Guid
Articles: 137

Leave a Reply

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