RewriteEngine on

# (as suggested by www.zeilenwechsel.de)

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond $1#%{REQUEST_URI} ([^#]*)#(.*)\1$
RewriteRule ^(.*)$ %2index.php/$1 [QSA,L]

