# dispelled.ca — Apache configuration
Options -Indexes

# Default document
DirectoryIndex index.php

# Deny access to sensitive files
<FilesMatch "\.(json|log|md|sh|gitkeep)$">
    Require all denied
</FilesMatch>

# Clean URLs: /weather instead of /weather.php
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^\.]+)/?$ $1.php [NC,L]
</IfModule>
