6 lines
190 B
ApacheConf
6 lines
190 B
ApacheConf
|
|
RewriteEngine On
|
||
|
|
|
||
|
|
RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/index\.php[\s?/] [NC]
|
||
|
|
RewriteRule ^index\.php$ / [R=301,L]
|
||
|
|
RewriteCond %{REQUEST_FILENAME}.php -f
|
||
|
|
RewriteRule ^([^/]+)/?$ $1.php [L]
|