/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteEngine On RewriteBase / RewriteRule ^()$ index.php [NC,L] Rewritecond %{REQUEST_URI} !(^/?.*\..*$) [NC] RewriteRule (.*)$ $1.php [NC] ErrorDocument 404 /index