View Single Post
Old 05-05-2008, 10:05 AM   #19 (permalink)
sjaq
The Acquainted
 
sjaq's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 113
Thanks: 11
sjaq is on a distinguished road
Default

Ah I found it, when you use %3F it works, that is the hex for a ?. So that was the problem. It is just a technical restriction.. But you could fix it with php...
Code:
RewriteRule ^image$ image.php [QSA,L]
PHP Code:
// get all array keys
$gets array_keys($_GET);
// check if it is a valid image (you may want to check if it exists
$img preg_match('/[a-zA-Z0-9\.\_]+/'$gets[0])? $gets[0] : null;
// because it is a key apache replaces .'s with _'s we need to fix that
$xp explode('_'$img);
$count count($xp)-1;
$ext $xp[$count];
unset(
$xp[$count]);
// the image
$img implode('_'$xp) . '.' $ext
sjaq is offline  
Reply With Quote
The Following User Says Thank You to sjaq For This Useful Post:
Orc (05-05-2008)