| How can I use .htaccess to protect my bandwidth?: | ||||
RewriteEngine on RewriteCond % !^.*mywebsite.com.*$ [NC] RewriteRule ^.*$ http ://www.mywebsite.com/sorry.html [R] You make this .htaccess file in the directory you wish to protect. It is effective for all subdirectories. You can change the rewrite URL (http ://www.mywebsite.com/sorry.html ) to what you want the user redirected to. You don't have to make a webpage, set it to whatever you would like. Note: There must be a backslash '' before the '.' on the second line. Example: It should be: mywebsite.com. Not: mywebsite.com |
||||

