I have a folder (assets) on the root of my site that is a symlink to a folder deeper in my file path. I only want a specific set of file types accessible.
On my root, I have this in an .htaccess file:
RewriteEngine on RewriteCond $1 !^(index\.php|api\.php|assets|robots\.txt) RewriteRule ^(.*)$ /index.php/$1 [L,QSA] Options -Indexes
In my assets folder, I have this in an .htaccess file:
allow from all <Files ~ "\.(js|css|jpg|png|gif|ico|eot|svg|ttf|woff)$"> order allow,deny allow from all </Files>
The problem I am having is that the query string is being stripped off only when I access the folder.