Skip to content

Instantly share code, notes, and snippets.

@NickClark
Created October 5, 2010 20:31
Show Gist options
  • Save NickClark/612274 to your computer and use it in GitHub Desktop.
Save NickClark/612274 to your computer and use it in GitHub Desktop.
I would like to convert this:
RewriteCond %{REQUEST_URI} !forms(.*)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
Into this:
if ($request_uri !~* forms(.*) && !-f @request_filename && !-d @request_filename ) {
rewrite ^(.*)$ index.php;
}
Doesn't work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment