PDA

View Full Version : htaccess for a whole slew of files



moonshield
02-08-2005, 07:49 PM
i know about the <files> type=dfsdfsdf </files> directive... how would I make the setting true for a whole directory or for many files? Do I have to do mod_rewrite? I would prefer not to.

ordinary_guy
02-08-2005, 08:24 PM
Can you elaborate your problem ?

moonshield
02-08-2005, 08:29 PM
yea, all right..

i have 150 files that I want parsed as html... they have no extensions, do I have to put them in one by one? Or can I do a whole group of them at once?

moonshield
02-08-2005, 08:35 PM
nevermind i figured it out.

ordinary_guy
02-08-2005, 08:36 PM
am guessing it is for an AWS script. where you have a php file without an extension and you made list all the files on <files> </files> directive on a directory.

1. You can do it one by one in files directive.
2. Make a tag on a filename like abc_product,abc_product2 and use the <filesmatch> directive.
3. Use mod_rewrite <-- I dont think you would not like this as a solution.

ordinary_guy
02-08-2005, 08:43 PM
nevermind i figured it out.

Great, it's nice that you have figured it out :D