From e5a138157b16b32485cd059d223318568498d592 Mon Sep 17 00:00:00 2001 From: Thijs Stobbelaar Date: Tue, 26 Sep 2023 19:40:00 +0200 Subject: [PATCH] d --- .htaccess | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..fd2af8f --- /dev/null +++ b/.htaccess @@ -0,0 +1,8 @@ +RewriteEngine On + +# Check if not an existing directory +RewriteCond %{REQUEST_FILENAME} !-d +# Check if appending .php points to an existing file +RewriteCond %{REQUEST_FILENAME}\.php -f +# Rewrite the neat URL to its .php counterpart +RewriteRule ^(.*)$ $1.php [L] \ No newline at end of file