02-22-2009, 04:06 PM
|
#3 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: Bucharest, Romania
Posts: 438
Thanks: 3
|
@jlodell: he wants to deny access to an existing file, so your rules will have no effect there.
one quick fix would be to add images/C.php into the second's rule exception list, which should be a RewriteCond rule rather than a RewriteRule:
Code:
# your rules go here
RewriteCond $1 !(\.(?:js|gif|jpg|jpeg|png|css)|(?:images\/C\.php))
RewriteRule ^(.*)$ index.php/$1 [QSA,L]
ps: L in [L] stands for last rule, not lock.
ps2: ALWAYS escape characters other than letters and numbers in regex rules. just to be on the safe side.
__________________
I have optimistic thoughts, even though sometimes (if not always) life's a bitch.
|
|
|
|