-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.htaccess
More file actions
38 lines (27 loc) · 885 Bytes
/
.htaccess
File metadata and controls
38 lines (27 loc) · 885 Bytes
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
33
34
35
36
37
38
DirectoryIndex index.php
# Deny directory listings
Options -Indexes
# Follow symbolic links
Options +FollowSymLinks
# Disable Content Negotiation to stop `RewriteCond %{REQUEST_FILENAME} !-f` from matching .php files
# /post will match /post.php if this is enabled
Options -Multiviews
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME} !-s
#RewriteCond %{REQUEST_FILENAME} !-l
#######################################################################
#
# Change the path below to the location of your index.php
# file relative to your webservers DocumentRoot.
#
#######################################################################
RewriteRule .* index.php
</IfModule>
# Protect .htaccess
<Files .htaccess>
order deny,allow
deny from all
</Files>