/ Published in: Apache
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html-f RewriteRule ^(.*)$ $1.html