for example :
http://www.example.com/variable1/variable2/variable3
You might find it easier to grab the parameters in the .php file, via:
$pathinfo = isset($_SERVER['PATH_INFO'])
? $_SERVER['PATH_INFO']
: $_SERVER['REDIRECT_URL'];
$params = preg_split('"https://stackoverflow.com/"', $pathinfo, -1, PREG_SPLIT_NO_EMPTY);
echo "<pre>";
print_r($params);
would return:
Array
(
[0] => variable1
[1] => variable2
[2] => variable3
)
see this
solved How to resize images from URL directly