diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..e6e3442 --- /dev/null +++ b/.htaccess @@ -0,0 +1,10 @@ +RewriteEngine On +RewriteBase / + +# redirect html pages to the root domain +RewriteRule ^index\.html$ / [NC,R,L] + +# remove filename +RewriteCond %{REQUEST_FILENAME} !-f +RewriteRule ^([^\.]+)$ $1.php [NC,L] +RewriteRule ^([^\.]+)$ $1.html [NC,L] \ No newline at end of file