My current htaccess file looks like this:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.*)$ index.php?page=$1 [L,QSA]
This works fine for me, however I want to try and reduce server load so I have added this line just below the RewriteEngine On line to stop processing if loading static content:
RewriteCond %{REQUEST_FILENAME} !.*jpg$|.*gif$|.*png$|.*css$|.*js$|.*txt$|.*ico$|.*pdf$ [NC]
Is this the most efficient way of writing it? Thanks