I have many files including images, php& js scripts and subfolders. I need to redirect to index.php for any uri using .htaccess.
www.example.com/test should be redirect to index.php
But images should not be redirected to index.php. Instead it should be printed directly in browser.
www.example.com/sample.jpg should display sample.jpg.
I am using following codes in .htaccess code:
RewriteEngine On RewriteRule ^(.*)$ index.php
Can someone explain how to allow image to display?