im tugging my hair out.

im making use of mod_rewrite to operate through index.php if % is not a current document:

#Any request (page) which doesnt exist (item pages, special urls, categories etc)
#get routed through urlparse, where PHP takes over nicely
RewriteRule (.*) urlparse.php?url=$1 [L]

using this into consideration, i would like a guide BEFORE that one which states:

if %{REQUEST_URI} is empty then pretend it is index.php

my understanding is perfect for a url like

then % is "" (a clear string), verses

where % is "something/whatever".

thank you for any help everyone can provide.


RewriteRule ^$ index.php