05-05-2008, 03:42 PM
|
#21 (permalink)
|
|
The Prestige
Join Date: Dec 2007
Posts: 1,044
Thanks: 193
|
Quote:
Originally Posted by Salathe
I tried the following which seemed to work ok on my system:
RewriteCond %{QUERY_STRING} ^[a-z0-9]{1,20}\.(?:jpe?g|gif|png|bmp)$ [NC]
RewriteRule ^image$ img.php?img=%0 [L]
One thing to note is that your PHP file shouldn't be named the same as what comes before the query string, ie image?test.jpg should not use image.php because it appears that Apache's content negotiation gets in the way and serves up the PHP page without going through the rewrite process. Simply rename the PHP page to something else as I have in my example above, img.php
|
i guess its just me cause that didnt work either
Update: I see an error, and now it fixed the problem, haha, slathe always has the answer. :P
__________________
VillageIdiot can have my babbies ;d
|
|
|
|