05-05-2008, 10:05 AM
|
#19 (permalink)
|
|
The Acquainted
Join Date: Nov 2007
Location: Netherlands
Posts: 113
Thanks: 11
|
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;
|
|
|
|