![]() |
|
#1
|
|||
|
|||
.htaccess on Windows2k, and the trailing slashHi, a couple of things.
Firstly, .htaccess on Apache/Win2k.... It doesn't seem to be working, as when I put a working .htaccess & .htpasswd in a directory, it just by-passes it/them... Do I need to add something to my htppd.conf? Secondly, whenever I type my url without a trailing 'forward-slash' (/) i.e http://www.test.co.uk/forum - it gives me a 'Cannot find server', but when I add the forward-slash i.e http://www.test.co.uk/forum/ - it works perfectly What do I need to do or add to the .conf file?Thank you for reading, and I hope I've explained myself enough. TIA Pedster.tk |
|
#2
|
||||
|
||||
|
When Apache seems to be 'bypass'-ing your .htaccess file, you may want to add something like this to your httpd.conf file and see if it changes anything:
Code:
Regarding your 2nd issue, I cannot recall how I fixed that, maybe the first step is to check your paths in the httpd.conf. Someone else may know for certain. __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#3
|
||||
|
||||
|
I think that the second issue has something to do with the option:
UseCanonicalName On in httpd.conf just try to change On to Off and see if it works |
|
#4
|
||||
|
||||
How to solve the missing trailing slash problem on ApachePedster2k, have you figured out this trailing slash issue yet?
I happened to be reading the FAQ off the Apache Manual when I came across this issue mentioned in it and thought I'd paste the solution for anyone else having the same issue in the future... Quote:
__________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#5
|
|||
|
|||
|
I have had the exact same problem...
I have my .htaccess file in the folder I want to protect, but for some reason, it doesnt read that this area is suppose to be off limits without a PW. I havn't done anything to special to my httpd.conf file, so maybe its some default settings I need to change. I have checked and it says: # AccessFileName: The name of the file to look for in each directory # for access control information. # AccessFileName .htaccess My .htaccess file was set up by someone who does this for a living, and I read it over, looks good, so im stumped. One thing that does catch my attention is that he said it was the first time he had ever set up a .htaccess file on a NT box. Any help would seriously be appreciated. Thanks in advance. |
|
#6
|
||||
|
||||
|
Hello amneziac85.
Did you read post no.2 above? Did you try that? __________________
J de Silva Learning Journal | GIDForums™ | GIDNetwork™ | GIDWebhosts™ | GIDSearch™ |
|
#7
|
|||
|
|||
|
Let me be the kicking dummy....
JdS...I tried it...didnt work, so when I came to reply to the post, I remembered an old Apache lesson from long ago...RESTART THE SERVER-durf... So yea, good job JDS, youve done it again, works perfect. Thanks. |
Recent GIDBlog
A Week in Kuwait by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The