-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3659ead
commit f03fb6f
Showing
1 changed file
with
67 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
## Default .htaccess file | ||
Options -Indexes | ||
|
||
<ifModule mod_headers.c> | ||
Header set Connection keep-alive | ||
</ifModule> | ||
|
||
<IfModule mod_expires.c> | ||
# enable expirations | ||
ExpiresActive On | ||
# defaults | ||
ExpiresDefault "access plus 1 month" | ||
# media | ||
ExpiresByType image/gif "access plus 1 month" | ||
ExpiresByType image/png "access plus 1 month" | ||
ExpiresByType image/jpg "access plus 1 month" | ||
ExpiresByType image/jpeg "access plus 1 month" | ||
ExpiresByType video/mp4 "access plus 1 month" | ||
# stylesheets | ||
# ExpiresByType text/css "access plus 1 month" | ||
# javascript | ||
# ExpiresByType application/javascript "access plus 1 month" | ||
# pages | ||
# ExpiresByType application/xhtml+xml "access plus 1 week" | ||
# ExpiresByType text/html "access plus 1 week" | ||
</IfModule> | ||
|
||
<IfModule mod_deflate.c> | ||
# compress text, html, javascript, css, xml: | ||
AddOutputFilterByType DEFLATE text/plain | ||
AddOutputFilterByType DEFLATE text/html | ||
AddOutputFilterByType DEFLATE text/xml | ||
AddOutputFilterByType DEFLATE text/css | ||
AddOutputFilterByType DEFLATE application/xml | ||
AddOutputFilterByType DEFLATE application/xhtml+xml | ||
AddOutputFilterByType DEFLATE application/rss+xml | ||
AddOutputFilterByType DEFLATE application/javascript | ||
AddOutputFilterByType DEFLATE application/x-javascript | ||
AddOutputFilterByType DEFLATE image/x-icon | ||
</IfModule> | ||
|
||
<IfModule mod_php4.c> | ||
php_value session.use_trans_sid 0 | ||
# php_flag display_errors on | ||
php_flag magic_quotes_gpc Off | ||
</IfModule> | ||
|
||
<IfModule mod_security.c> | ||
SecFilterEngine Off | ||
SecFilterScanPOST Off | ||
</IfModule> | ||
|
||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
|
||
RewriteCond %{HTTPS} !^on$ | ||
RewriteCond %{HTTP_HOST} ^(.*)$ [NC] | ||
RewriteRule ^.*$ https://%1%{REQUEST_URI} [L,R=301] | ||
|
||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^api/v1/(.*)$ api/v1/api.php?request=$1 [QSA,NC,L] | ||
|
||
RewriteCond %{REQUEST_FILENAME} !-f | ||
RewriteCond %{REQUEST_FILENAME} !-d | ||
RewriteRule ^(.*)$ index.php?category=$1 [QSA,NC,L] | ||
</IfModule> |