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:
However, what I want to do as well, is when a particular script is accessed, to rewrite it back to the rewritten format above.Code:RewriteEngine on RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1
For example:
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.Code:RewriteEngine on RewriteRule ^/somefolder/somescript.php(.*)$ index.php/$1 [L] RewriteCond %{SCRIPT_FILENAME} !-f RewriteCond %{SCRIPT_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1





Bookmarks