Hi I have a problem. I need to do a redirection of all requests to index page. The problem is that when I exclude the css/js from the rule the server is trying to resolve the relative path from the address inputed in the browser.
Example of problem path:mydomain.com/category/product

Since index is in main directory the relative paths are resolving as they should only with url like: mydomain.com/category
Is there a quick fix to this?

.htaccess
Code:
Options FollowSymLinks
RewriteEngine On

# ignore anything that's an actual file (eg CSS, js, images)
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f

# redirect all other traffic to the index page
RewriteRule . index.php [L]