I use this for another site and works no issues. But just loaded onto a new site, custom built and it's not working, whenever I go to a directory that actually exists on the server or a CSS/JS file, it comes up 403 Forbidden.
UPDATE: I've found everything except for two js documents and one css document is working fine, those 3 are still getting the 403 Forbidden error. Any suggestions on a fix? .htaccess file seems to be working fine, I think it may be a Permissions issue, but I've checked and everything checks out fine....
UPDATE 2: I've found the issue, it's to do with the FilesMatch block of code, if you have any item in there, eg: (ini|log|foo), even though it does not explicitly define a specific word, if that part of the word is in the filename and it matches it will give a 403 Forbidden error, for example, above we have ini, log and foo, if you have a file with extension for example, .foodItem, it will detect the foo and block the file entirely and give a 403, so just remember that... ISSUE HAS NOW BEEN RESOLVED, notes in UPDATE 2 on Solution for anyone else who runs into this issue.
Below is the HTACCESS file, please if anyone can help solve this, I would be very delighted! I also need it to block hotlinking and also cache files automatically.
AddType text/x-component .htc
Options -Indexes
Options +FollowSymLinks
Options -MultiViews
DirectoryIndex index.php
DirectoryIndex index.html
<FilesMatch ".(clb|ini|log|data)">
Order deny,allow
Deny from all
</FilesMatch>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php [L]
</IfModule>