first commit
This commit is contained in:
14
en/.htaccess
Normal file
14
en/.htaccess
Normal file
@@ -0,0 +1,14 @@
|
||||
# Enable the Rewrite Engine
|
||||
RewriteEngine On
|
||||
|
||||
# If the requested file does not exist
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
|
||||
# Check if a file exists with .php or .html extension
|
||||
RewriteRule ^([^\.]+)$ $1.php [L,NC]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteRule ^([^\.]+)$ $1.html [L,NC]
|
||||
|
||||
# Redirect to custom 404 page if the file still doesn't exist
|
||||
ErrorDocument 404 /404.php
|
||||
Reference in New Issue
Block a user