View Full Version : Serious htaccess Problem
Diamond
06-01-2007, 10:37 PM
Hi - I installed phpld the other day and everything seemed to go ok... but there is a serious problem. The htaccess file is blocking a folder it shouldn't be. I have the directory set up on my main site but I have add-on domains on the account. The one folder phplad's htaccess file happens to be blocking is holding one of those websites... I cant figure it out... just the one add-on.... all the others work fine and dont seem to conflict but for some reason it has singled out this one folder and is blocking it.. and of course if I remove the htaccess file... the directory dont work. I have never messed around with an htacess file so I dont know why it would all of a sudden just pick this one folder to deny access too but I need a fix fast! Thanks in advance!
Hello and welcome!
You might want to edit or remove these two .htaccess rules from your file:
Content visible to registered users only.Content visible to registered users only.the first is protecting folders, the second files with the endings: .inc, .inc.php, .tpl, .sql
If you completely remove the .htaccess file you won't be able to use friendly URLs.
Boby
PS: Tell us your folder name where you have your addon or what it is and we'll see if we can edit the rules to allow that one but still protect the rest.
Diamond
06-01-2007, 11:02 PM
Wow thanks for the super fast reply...
I tried that and it didn't work... this is not a normal problem.. I can tell because for some reason, it is just picking on this one folder... I removed what you said.. and nothing... so I took this out too:
# Disable directory browsing
Options -Indexes
And it just exposed the parent directory of the site.... I cant figure it out... everything else no problem..... but for some reason it has just singled out this one site....
So I turned off the search friendly urls and deleted the htaccess file... and everything seems to work now.... does deleting that file pose a security risk or is it just for rewriting the urls?
It's just an additional protection, and improves a bit your security, specially if the webserver is not very well configured.
In most cases you are safe with or without it.
If you want me to take a look and possibly fix it, send me please a PM with your FTP/CPanel details and let me know what folder is blocked.
Boby
vBulletin® v3.8.0, Copyright ©2000-2012, Jelsoft Enterprises Ltd.