Page 1 of 1
where does .htaccess go?
Posted: Mon Apr 19, 2004 9:28 am
by Chris Corbyn
Hi,
I need to create the .htaccess file for my site but I was wondering since my site does not run from the base directory on my server space and from a folder one depth in do I still put .htaccess in the base directory or in the folder that contains the index file?
Thanks
Posted: Mon Apr 19, 2004 9:30 am
by magicrobotmonkey
put them in each folder - set them to whatever security you want in the given folder. They each reign over their own folder. The base dir- if you don't serve out of it you'll probably want all access denied then the served dir allow php or whatever.
Posted: Mon Apr 19, 2004 11:43 am
by Chris Corbyn
Ok thanks, that clears that up. I'm struggling to create the file itself too.
Because I'm working on a windows platform ftp'ing to the server my files are on, windows just displays a message saying you must enter a filename (because there's nothing before the dot). Do I need to use some different software to do this?
Posted: Mon Apr 19, 2004 11:48 am
by magicrobotmonkey
when you save it put it in quotes - in notpad put ".htaccess" in the save as box
Posted: Mon Apr 19, 2004 11:55 am
by Chris Corbyn
Oh, I feel a bit stupid now

LOL
Thanks.
Posted: Mon Apr 19, 2004 11:56 am
by magicrobotmonkey
thats cool - its a little bit of a wierd thing to know - i wouldn't have known it if i had stumbled across it on these forums once...