source: pro-violet-viettel/www/deploy/20150304/.htaccess @ 804

Last change on this file since 804 was 780, checked in by dungnv, 10 years ago
File size: 1.7 KB
RevLine 
[780]1IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
2
3DirectoryIndex default.php index.php index.html
4
5Options +Includes
6
7XBitHack on
8
9
10
11<Limit GET POST>
12
13order deny,allow
14
15deny from all
16
17allow from all
18
19</Limit>
20
21<Limit PUT DELETE>
22
23order deny,allow
24
25deny from all
26
27</Limit>
28
29AuthName enci.edu.vn
30
31
32
33<IfModule mod_rewrite.c>
34
35    RewriteEngine On
36
37    RewriteBase /
38
39    RewriteCond %{REQUEST_URI} !^(/index\.php|/cms|/user-guide|/assests|/robots\.txt|/favicon\.ico|elfinder-2.0-rc1)
40
41    #Removes access to the system folder by users.
42
43    #Additionally this will allow you to create a System.php controller,
44
45    #previously this would not have been possible.
46
47    #'system' can be replaced if you have renamed your system folder.
48
49    RewriteCond %{REQUEST_URI} ^system.*
50    RewriteRule ^(.*)$ /index.php?/$1 [L]
51
52    #When your application folder isn't in the system folder
53
54    #This snippet prevents user access to the application folder
55
56    #Submitted by: Fabdrol
57
58    #Rename 'application' to your applications folder name.
59
60    RewriteCond %{REQUEST_URI} ^application.*
61
62    RewriteRule ^(.*)$ /index.php?/$1 [L]
63
64
65    #Checks to see if the user is attempting to access a valid file,
66
67    #such as an image or css document, if this isn't true it sends the
68
69    #request to index.php
70
71    RewriteCond %{REQUEST_FILENAME} !-f
72
73    RewriteCond %{REQUEST_FILENAME} !-d
74
75    RewriteRule ^(.*)$ index.php?/$1 [L]
76
77</IfModule>
78
79
80
81<IfModule !mod_rewrite.c>
82
83    # If we don't have mod_rewrite installed, all 404's
84
85    # can be sent to index.php, and everything works as normal.
86
87    # Submitted by: ElliotHaughin
88
89
90
91    ErrorDocument 404 /index.php
92
93</IfModule>
Note: See TracBrowser for help on using the repository browser.