I've been playing with this for the last 2 hours with no success! Really hoping sitepoint members can help!

As one normally does, we have rewrite running fine:
Code:
RewriteEngine on
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
However, what I want to do as well, is when a particular script is accessed, to rewrite it back to the rewritten format above.

For example:
Code:
RewriteEngine on

RewriteRule ^/somefolder/somescript.php(.*)$ index.php/$1 [L]

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
So if somefolder/somescript.php exists, translate the arguments to index.php like the other statement does. However, this doesn't seem to work.. Can anyone tell me what I'm doing wrong.. thank you.