.htaccess and PHPSESSID issues
i have another problem. i need to deny access to a directory called img. so i put into a root of directory a .htaccess file, which contained the address <files> to /img directory, with deny from all. but i still can access that directory, so i don't absolutely know what to do.. will i need to enable .htaccess in apache or what? also i don't know how to use PHPSESSID. i've tryed to google some info about it, but i can't find any useful tutorial. so any help will be appreciated. thanks in advance for any help…
Have you even researched this at all on your own? Google "htaccess Apache" - First Result
yes, i've already read this, i've also read this: http://www.javascriptkit.com/howto/htaccess.shtml
dancuc wrote: yes, i've already read this, i've also read this: http://www.javascriptkit.com/howto/htaccess.shtml
Yeah, that link sucks… it won't teach you anything.
Well, when in doubt… RTFM.
last question. when i put the .htaccess file into a directory, with "deny from all", or with cheese's solution filled with crap… i get forbidden, but server cannot access that dir too. it's an /img dir, do i need that server has access to this, because he needs to load images from there, how can i fix this?