This snippet in your .htaccess will ensure that all requests for files and folders that does not exists will be redirected to index.php