View Single Post
Old 16th February 2007, 00:10
Ovidiu Ovidiu is offline
Senior Member
Join Date: Sep 2005
Posts: 1,269
Thanks: 84
Thanked 25 Times in 21 Posts

I was just concerned about security, as this is a file uploading / sharing application, so I really wanted to use those directives inside a .htaccess file to turn php off for the uplaod folders...

btw. the rewrite stuff works inside the .htaccess its just these:

# Disable php in userfiles directory (recommended!!!!)
# RemoveType php
# <IfModule mod_php4.c>
# php_flag engine 0
# </IfModule>

<IfModule mod_php5.c>
php_flag engine 0

# GET requests only
<LimitExcept GET>
Order Allow,Deny
that give me errors if I put them inside .htaccess files.

I'll try your advice tomorrow, going to bed now.
Reply With Quote