9 lines
252 B
ApacheConf
9 lines
252 B
ApacheConf
RewriteEngine On
|
|
|
|
# Do not interfere with real files or directories
|
|
RewriteCond %{REQUEST_FILENAME} !-f
|
|
RewriteCond %{REQUEST_FILENAME} !-d
|
|
|
|
# If a matching .php file exists, serve it
|
|
RewriteCond %{REQUEST_FILENAME}.php -f
|
|
RewriteRule ^(.+)$ $1.php [L] |