-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.htaccess
39 lines (38 loc) · 962 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
33
34
35
36
37
38
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*)$ index.php [QSA]
# ------------------------------------------------------------------------
# config for nginx
# копировать без #
# ------------------------------------------------------------------------
# location ~* ^/(mwce|build|log|lib|configs|temp_)($|\/) {
# deny all;
# }
#
# location ~ \.(js|css|png|jpg|gif|swf|ico|pdf|mov|fla|zip|rar)$ {
# root $docroot;
# }
# location / {
# root $docroot;
# index index.html index.htm index.php;
# try_files $uri $uri/ @rewrite;
# }
#
# location ~ control?\.php
# {
# rewrite ^(.*)$ /index.php;
# }
#
# location @rewrite {
# root $docroot;
# if (!-e $request_filename){
# rewrite ^(.*)$ /index.php;
# }
# }
#
# location ~ /\.ht {
# deny all;
# }
#