Say I'm trying to access:
mysite.com/foo/bar/
I want too:
RewriteEngine On
RewriteCond %{REQUEST_URI} !=/index.php
RewriteRule .* /index.php
Then:
$url = $_SERVER['PHP_SELF'];
echo $url;
To show:
foo/bar/
Currently getting:
index.php
(Obviously I have no idea, but you get the point for what I'm trying to achieve)