Web Hosting Talk







View Full Version : htaccess name problem


tweakmaster
03-14-2002, 07:17 AM
Hi all, on a winME box, can I name a file .htaccess ?

I tried but it states that the file must have a file name

it only sees the "htaccess" part as an extention



help needed........

Thanks for any info

MotleyFool
03-14-2002, 07:29 AM
I think you can just name it htaccess and change the AccessFilename in httpd.conf to htaccess [from the default .htaccess]

Cheers
Balaji

tweakmaster
03-14-2002, 08:45 AM
Thanks I'll give it a go and post back the results, sounds right to me though

all the best


thanks again


tweakmaster........

tweakmaster
03-14-2002, 09:01 AM
<snip>

#
# AccessFileName: The name of the file to look for in each directory
# for access control information.
#
AccessFileName .htaccess

</snip>

I'll just rename that and see what happens

thanks again

tweakmaster

MotleyFool
03-14-2002, 09:16 AM
tweakmaster

You are welcome... :) I see no reason why it should not work.. remember to restart apache after that change

Also do remember to put

AllowOverride All

for Apache to read the htaccess file

Cheers
Balaji

tweakmaster
03-14-2002, 07:30 PM
Great, it worked, I did have trouble untill I changed the

allowoverride none

to

allowoverride all


Thanks heaps, I now have a bit more security on my unsecure box

lol


thanks again


Tweakmaster