uodated
This commit is contained in:
parent
02fdacefd7
commit
23a3f79d30
11
htaccess
11
htaccess
@ -1,9 +1,6 @@
|
||||
RewriteEngine On
|
||||
|
||||
# Redirect requests for .php files (as before)
|
||||
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^.]+)\.php [NC]
|
||||
RewriteRule ^ /%1 [L,R=301]
|
||||
|
||||
# Internally rewrite requests WITHOUT .php to the actual .php file (explicit)
|
||||
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_URI}.php -f
|
||||
RewriteRule ^(.*)$ $1.php [L]
|
||||
# Remove .php extension from URLs
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteCond %{REQUEST_FILENAME}\.php -f
|
||||
RewriteRule ^(.+)$ $1.php [L]
|
||||
Loading…
Reference in New Issue
Block a user