Current Customers > .htaccess
.htaccess
| 1. How do I password protect a folder or directory on my site? |
Using NOTEPAD or another text editor, create a file called ".htaccess" which contains the following lines:
You will of course need to replace <username> with your username, <domain> with a domain name that is
hosted by us, and <dir> with the name of the folder/directory you are attempting to password protect. The ".htaccess"
file must be placed INSIDE of the folder/directory you will be protecting. |
| Back To Top |
| 2. How do I make custom 404, 403, etc, error pages? | ||||||||||||
First, create the HTML page which will replace the standard Apache error message (for example: 404.html, 403.html, etc). If you haven't already created an .htaccess file, open a text editor, such as NOTEPAD, and create a file called ".htaccess". For each error you wish to customize, add a line to your ".htaccess" File:
NOTE: The path to the file may vary slightly if you've put the 404.html file in a different folder/directory. The table below shows common server status codes and when they might occur.
|
||||||||||||
| Back To Top |
| 3. Can I block certain IP addresses from accessing my site? |
Using NOTEPAD or another text editor, create a file called ".htaccess" which contains the following lines:
NOTE: Replace the IP address above (192.0.0.1) with the IP you'd like to block. |
| Back To Top |
| 4. How can I stop people from hotlinking to my site? |
The site below has a short, helpful tutorial on the subject. |
| Back To Top |