You can get a URI, but only without a fragment, since it is not being transmitted to the server. Try this rule:
RewriteRule ^http:/ index.php [L]
Then the requested URL request plus the request (so part from the third /to the first #or the end of the URI) is available at $_SERVER['REQUEST_URI'].
Gumbo source
share