-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
32 lines (25 loc) · 834 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# <IfModule mod_rewrite.c>
# RewriteEngine on
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_FILENAME}.php -f
# RewriteRule ^(.*)$ $1.php [NC,L]
# #RewriteRule ^([a-z]+)\/?$ $1.php [NC]
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_FILENAME}.html -f
# RewriteRule ^(.*)$ $1.html
# #RewriteRule ^([a-z]+)\/?$ $1.html [NC]
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_FILENAME}.asp -f
# RewriteRule ^(.*)$ $1.asp
# #RewriteRule ^([a-z]+)\/?$ $1.asp [NC]
# </IfModule>
RewriteEngine on
# RewriteCond %{REQUEST_FILENAME} !-d
# RewriteCond %{REQUEST_FILENAME}.php -f
# RewriteRule ^(.*)$ $1.php [NC,L]
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php [NC,L]
RewriteRule ^([a-z]+)\/?$ $1.php [NC]
</IfModule>