RewriteEngine on
RewriteRule ^.*$ index.php [NC,L]
if (parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) != '/index.php') {
header('Location: /index.php');
}
#Rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^([A-Za-z0-9\/\&\=\+\%]+)([A-Za-z0-9\&\=\+\%])$ $1$2/ [L]
RewriteRule ^([A-Za-z0-9\/\&\=\+\%]+)([\/])$ ?p=$1 [L]
</IfModule>
#Rewrite
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^.*$ index.html [NC,L]
</IfModule>