How to Add Browser Caching Rules Using htaccess
How to Add Browser Caching Rules Using .htaccess
Browser caching can help your website load...
How to Block User Agents in an htaccess File
How to Block User Agents in an .htaccess File
If you're seeing suspicious or excessive traffic...
How to Create a User-friendly URL Using htaccess
If your website is using a long URL such as example.com/files/folder/sitemap.html, you can change...
How to Create a User-friendly URL Using htaccess
If your website is using a long URL such as example.com/files/folder/sitemap.html, you can change...
How to enable and disable directory index listings using an htaccess file
Using directory index listings
By default on SmallTech servers, when visitors go to a URL that...
How to Enable Gzip Compression Using htaccess
How to Enable Gzip Compression Using .htaccess
Gzip compression helps your website load faster...
How to Force HTTPS Using htaccess
To ensure all incoming traffic uses a secure HTTPS connection, you can modify the .htaccess file...
How to Set a Custom 404 Error Page Using htaccess
How to Set a Custom 404 Error Page Using .htaccess
When a visitor lands on a page that doesn’t...
How to use the cPanel Domains tool
The cPanel Domains feature is a one-stop tool to create and manage all of the domains,...
How to Redirect a Page or Website Using htaccess
How to Redirect a Page or Website Using .htaccess
If a page on your website no longer exists or...
How to Redirect a Page to Another Page or Website Using htaccess
If a page on your website no longer exists and you want to redirect it to a new page or website,...
Fix PHP Error: Allowed Memory Size of X Bytes Exhausted
If you are getting an error such as "Allowed memory size of... in file...
PHP Error: Allowed Memory Size of x Bytes Exhausted
If you are getting an error such as "Allowed memory size of... in file...
How to Ban Any IP Address via htaccess
If you want to block an IP Address, you can add the below lines to your htaccess file.
order...
How to Block Any IP Address via an htaccess Rule
If you want to block an IP Address, you can add the below lines to your htaccess file.
order...
How to Disable Directory Browsing Using the htaccess Rule
How to Disable Directory Browsing Using the .htaccess Rule
For security reasons, it's highly...
How to Disable Directory Browsing Using the htaccess Rule
For security purposes, you should disable directory browsing on your website so no one can see...
How to Protect the htaccess File
How to Protect the .htaccess File
Your .htaccess file controls many important settings on your...
How to Protect Your htaccess File
You can prevent unauthorized access to your htaccess file by adding this rule to the file:
#...
How to Restrict Access to Directories by IP Address
To secure your admin area from hackers, you should only allow access to your admin directory from...
How to Edit (Dot)htaccess File in the cPanel File Manager
1. Log in to your cPanel account.
2. In the Files section, click on File Manager. 3. Navigate...
How to Set the PHP Version per Directory in cPanel
Do you want to use different PHP versions per directory? You can do this using cPanel and the dot...
Website Speed and Performance: Essential Tips for a Faster Website
Website speed and performance are critical factors in providing a great user experience and...