-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathhtaccess.txt
65 lines (58 loc) · 2.19 KB
/
htaccess.txt
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#
# The following directives help to improve the performance of MagIRC and are
# intended for Apache web servers only.
#
# To enable, rename this file to .htaccess
#
# Depending on your particular system, enabling an option might cause server
# errors. If this happens, just comment the offending line again.
#
# Enable zlib output compression for PHP
#php_flag zlib.output_compression On
# Unset cache ETags. Requires the mod_header apache module.
#<IfModule mod_header.c>
#Header unset ETag
#FileETag None
#</IfModule>
# Set cache expirations by file types. Requires the mod_expires apache module.
#<IfModule mod_expires.c>
#ExpiresActive On
#ExpiresDefault "access plus 300 seconds"
#ExpiresByType text/html "access plus 1 week"
#ExpiresByType text/css "access plus 1 week"
#ExpiresByType text/javascript "access plus 1 month"
#ExpiresByType application/javascript "access plus 1 month"
#ExpiresByType application/x-javascript "access plus 1 month"
#ExpiresByType application/json "access plus 5 seconds"
#ExpiresByType image/gif "access plus 1 month"
#ExpiresByType image/jpg "access plus 1 month"
#ExpiresByType image/jpeg "access plus 1 month"
#ExpiresByType image/png "access plus 1 month"
#ExpiresByType image/x-icon "access plus 1 year"
#</IfModule>
# Enable gzip output compression. Requires the mod_deflate apache module
#<IfModule mod_deflate.c>
#SetOutputFilter DEFLATE
#<IfModule mod_filter.c>
#AddOutputFilterByType DEFLATE text/html text/plain text/css text/javascript application/json
#</IfModule>
#<IfModule mod_header.c>
#Header append Vary User-Agent env=!dont-vary
#</IfModule>
#</IfModule>
# Enable URL rewriting. Requires the mod_rewrite apache module
# If you are self hosting ensure the vhost has "AllowOverride All"
# instead of "AllowOverride None" enable mod_rewrite via "a2enmod rewrite"
# in your terminal.
<IfModule mod_rewrite.c>
RewriteEngine On
# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
#
# RewriteBase /
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
</IfModule>