7 lines
171 B
ApacheConf
7 lines
171 B
ApacheConf
RewriteEngine On
|
|
RewriteCond %{THE_REQUEST} /([^.]+)\.php [NC]
|
|
RewriteRule ^ /%1 [NC,L,R]
|
|
|
|
RewriteCond %{REQUEST_FILENAME}.php -f
|
|
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
|