Studyhost - Simple web hosting solutions

dollar

pound

euro

Portal Home > Knowledgebase > htaccess


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 following:AuthUserFile...
How do I block a specific domain?
order allow,denydeny from fraudster.comallow from all
How do I do a rewrite instead of a 302 for missing pages?
RewriteEngine onRewriteCond %{REQUEST_FILENAME} !index.htmlRewriteRule /* /index.html [L]
How do I prevent spam from email harvestering?
RewriteEngine onRewriteCond %{HTTP_USER_AGENT} ^Bullseye.* [OR]RewriteCond %{HTTP_USER_AGENT}...
How do I stop off-line browsers/ robot surfers?
RewriteEngine OnRewriteCond %{HTTP_USER_AGENT} ^MozillaRewriteRule /* - [L]RewriteCond...
How do I turn directory Indexing off?
Options -IndexesTurn it back on:Options +Indexes