2
Good night!
I am with the following scenario in an application:
I’m redirecting all requests to my index.php and treating URL’s through the application:
RewriteCond %{REQUEST_URI} !admin
RewriteCond %{REQUEST_URI} !\.(gif|jpg|png|css|js|etc|flv|swf|mp4|mov|ttf)$ [NC]
RewriteRule (^.*) index.php [L]
I’m terrible with regular expressions, to this day I don’t understand this alien language, but I really need to solve this problem.
All my frontoffice is prepared for Friendly URL, but the admin doesn’t, so I needed this rule not to apply to the admin directory.
When I send parameters to /admin/? Area=Login, for example, it works. If I type only /admin/ apache applies the rule. If I pass a parameter that is via GET apache does not apply.
Thank you in advance, Renan Mazo
Add that before the rest:
RewriteCond %{REQUEST_URI} !^/caminhoExcecao
– Bacco