When you write some directory in your xamp then it easily open because it is local for you but what if other body opens it... To stop from it you have do just following procedure.
1. Open notepad and save it as ".htaccess"
[warning: windows does not allow to create .files without names if you use any other way... just do as it is... ]
2. Now your directory saved you can check that by writing that link.
What if you want that other body can only open my html files not others...
3. For that: the file you have created in which you will write
Options -indexes
<FilesMatch "\.(sqlite|xml)$">
Deny From all
</FilesMatch>
4. So in this way you can make your directory accessible and inaccessible
for what type of file you want.
1. Open notepad and save it as ".htaccess"
[warning: windows does not allow to create .files without names if you use any other way... just do as it is... ]
2. Now your directory saved you can check that by writing that link.
What if you want that other body can only open my html files not others...
3. For that: the file you have created in which you will write
Options -indexes
<FilesMatch "\.(sqlite|xml)$">
Deny From all
</FilesMatch>
4. So in this way you can make your directory accessible and inaccessible
for what type of file you want.
Protecting your directory through .htaccess |