Articles
Use one of the following in .htaccess to rewrite the URL:#Non-WWW to WWW version:Options...
How can I setup dynamic/custom error pages?If you have defined your own custom Error Pages using the "Define Error Pages" tool within the...
How can I use htaccess to password protect a directory?Create a file named .htaccess in your web directory that contains the...
How do I block a specific domain?Add the following to .htaccess:order allow,denydeny from fraudster.comallow from all(Change...
How do I do a rewrite instead of a 302 for missing pages?Use something like this:RewriteEngine onRewriteCond %{REQUEST_FILENAME} !index.htmlRewriteRule /*...
How do I prevent spam from email harvestering?Use the following in .htaccess:RewriteEngine onRewriteCond %{HTTP_USER_AGENT} ^Bullseye.*...
How do I rewrite the URL for my parked domain to my main domain?Add the following to .htaccess:Options +FollowSymLinksRewriteEngine onRewriteCond %{HTTP_HOST}...
How do I stop off-line browsers/ robot surfers?Try the following in .htaccess:RewriteEngine OnRewriteCond %{HTTP_USER_AGENT} ^MozillaRewriteRule...
How do I turn Directory Indexing off?Add the following to .htaccess:Options -IndexesTurn it back on:Options +Indexes
Redirecting your domain or any subdirectoryBy adding a "Redirect" statement to your .htaccess file, you can redirect any subdomain or your...