# RewriteEngine On
# RewriteBase /

# # Redirect requests for non-existing files or directories to the corresponding .php file
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_FILENAME}.php -f
# RewriteRule ^(.+)$ $1.php [L]

# # Redirect requests for the root domain to a specific file (e.g., index.php)
# # If you want to handle the root URL differently, you can modify this line accordingly.
# RewriteRule ^$ index.php [L]

RewriteEngine On
# RewriteCond %{HTTPS} off
# RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
