I have created a php framework that works well on an IIS server and the RewriteRules work perfectly well with web.config.
But the same rules don't work on an apache server with .htaccess and I don't understand why... here they are:
Options +FollowSymlinks
RewriteEngine On
RewriteRule picture/([a-zA-Z0-9]+)/([a-zA-Z\-0-9/]+).(jpg|png|gif) app/Src/$1Bundle/public/img/$2.$3 [L]
RewriteRule picture/([a-zA-Z\-0-9/]+).(jpg|png|gif) public/$1.$2 [L]
RewriteRule scripts/([a-zA-Z0-9]+)/(js|css|typo)/([a-zA-Z\-0-9=\./]+).(js|css) app/Src/$1Bundle/public/$2/$3.$4 [L]
RewriteRule scripts/(js|css|typo)/([a-zA-Z\-0-9=\./]+).(js|css) public/$1/$2.$3 [L]
RewriteRule scripts/(fonts)/([a-zA-Z\-0-9=\./]+).(eot|svg|ttf|woff) public/$1/$2.$3 [L]
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
I have tried this solution (and many others)(RewriteRule Last [L] flag not working?), but it hasn't worked.
RewriteCond %{ENV:REDIRECT_STATUS} != 200
I have run out of ideas...