Kann PHP Variablen in URLs einlesen, die durch mod_rewrite umgeleitet wurden?

When using mod_rewrite to redirect URLs, the rewritten URL may not contain any query parameters. However, you can still access the original URL parameters using the $_SERVER['REQUEST_URI'] variable in PHP. You can then parse the URL to extract the desired parameters.

// Get the original request URI
$request_uri = $_SERVER['REQUEST_URI'];

// Parse the request URI to extract parameters
$parameters = [];
parse_str(parse_url($request_uri, PHP_URL_QUERY), $parameters);

// Access the parameters
if(isset($parameters['param_name'])){
    $param_value = $parameters['param_name'];
    // Use the parameter value as needed
}