![]() | |||||||||
|
|
|
|
|
|
|
|
|
|
|
|
.htaccess
What is .htaccess? It's a file which changes settings on your domain server and allows you to make custom 404 pages, disallow direct linking, and other such things. Making the file: Create a file called htaccess.txt and do everything in that. When you're ready, you will upload the file to your domain and in ftp reame it to .htaccess to make it take effect. First thing first, you might not want people to be able to view your .htaccess file. Put the following code at the beginning of your htaccess file.
Now we can make the most popular thing to do with an htaccess file, a custom 404 page.
Another great thing to do with this file is blocking others from being able to direct link to images on your server. In the code below, only replace yourdomain.com (leave the /) and it will disallow direct linking of images on your domain.
| |||||||||