If your website is using a long URL like example.com/files/folder/sitemap.html, you can change it into “example.com/sitemap” in .htaccess Modify this line according to your needs and then add this code to your .htaccess file. RewriteEngine on RewriteRule ^sitemap/$ /files/folder/sitemap.html [L]
Read More »
For security purposes, we recommend that you disable directory browsing on your website so no one can see the files/folders of your website. You can disable Directory Browsing by adding this line to your .htaccess file. Options -Indexes
Read More »
If someone is trying to hack your website or you want to block their IP Address, you can add this line to your .htaccess file. order allow, deny deny from IP-ADDRESS allow from all Replace “IP-ADDRESS” with the IP Address you want to block.
Read More »
1. Log into your cPanel account. 2. In the “Files” section, click on “File Manger” Icon. 3. cPanel File Manager will be open, select the appropriate domain name or folder location, and press the “Go” button. 4. Navigate to the directory where your .htaccess file is located. If you want to edit the .htaccess file of your root directory, navigate […]
Read More »