Articles
A simple .htaccess 301 redirect generator to be used to create SEO friendly permanent redirects....
.htaccess RewriteRule ExamplesHere are some useful mod_rewrite RewriteRule redirect examples that you can use in your .htaccess...
.htaccess URL Masking ExamplesIf you would like to access a specific URL for your domain but do not display it in the browser's...
.htaccess rules to Harden your website’s SecurityBelow you see a list of the important rules that you can add to your .htaccess file to harden...
Block Bad Bots and Spiders using .htaccessBelow is a useful code block for blocking a lot of the known bad bots and site rippers currently...
Block visitors by IP address using .htaccessDeny access based upon IP address, or an IP block, by placing the following code into your...
Disabling Magic Quotes GPCHow to turn off magic quotes gpc (required by Joomla 3 and some other scripts).1. Create a...
Do you support mod_rewrite for apache?Yes, mod_rewrite is enabled on your server. For more information on what mod_rewrite is and how...
Force a Directory to load in HTTPS SSLUse the following .htaccess code to force a particular directory to load in HTTPS/SSL mode. #...
GET/POST Security with .htaccessBelow is a useful code to block out some common exploits for GET/POST values with .htaccessSimply...
How to Remove Multiple Slashes from URLYou can use this .htaccess rule for removing multiple trailing slashes anywhere in URL:...
How to execute php code as .htm or .html filesIn your .htaccess file insert this line of code. addhandler application/x-httpd-php .htm .html
Leverage Browser Caching using .htaccessAdd the following .htaccess rules to the very end of your .htaccess file to reduce the load times...
Point your home page URL to a subdirectoryMethod 1 - Redirect your main domain to a subfolder on that domain: RewriteEngine On# Change...
Redirect non-www to www over http and httpsUse the following .htaccess code to redirect non-www URLs to www over http and https. Create, or...
Resolving XMLRPC DDoS WordPress Attack with .htaccessBrute Force Attacks against WordPress have always been very common.Here is how to temporarily...
Secure Joomla with .htaccessAdvanced .htaccess rules that will overall secure and increase the speed of your Joomla...
Speed up WordPress Leveraging Browser Caching via .htaccessInsert the following code to your .htaccess file to increase the speed of your WordPress website...