Snippets

handle all url with single file
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteRule ^ /index.php [L]

On php:

echo $_SERVER["REQUEST_URI"];

Vengono passati anche i parametri