1

I'm using the code below to get all the parameters into a variable

<IfModule mod_rewrite.c>
    RewriteEngine On
    Rewritebase /  
    RewriteRule ^(.*)$ index.php?/$1 [QSA,L]
</IfModule>

The problem I have now is; How to exclude a sub-directory from the rule, for example images, or assets?

I have tried a few things but I ended up with url like this page.local/assets/?/assets

Axxess
  • 522
  • 2
  • 7
  • 19
  • I have tried the solution but when I have a directory witch exists on the server but is not in the rule. The URL becomes this http://page.local/test/?/test – Axxess Dec 15 '14 at 10:59

0 Answers0