Commit 218c37bbb14882f02f93aa1447b3094d17d3beba
1 parent
6d9d6b06
gitignore commit
Showing
3 changed files
with
186 additions
and
0 deletions
Show diff stats
| 1 | +# Created by .ignore support plugin (hsz.mobi) | |
| 2 | +### Yii template | |
| 3 | +assets/* | |
| 4 | +!assets/.gitignore | |
| 5 | +protected/runtime/* | |
| 6 | +!protected/runtime/.gitignore | |
| 7 | +protected/data/*.db | |
| 8 | +themes/classic/views/ | |
| 9 | +/yii | |
| 10 | +.idea | |
| 11 | +nbproject | |
| 12 | +.buildpath | |
| 13 | +.project | |
| 14 | +.settings | |
| 15 | +Thumbs.db | |
| 16 | +/vendor | |
| 17 | +composer.phar | |
| 18 | +.DS_Store | |
| 19 | +phpunit.phar | |
| 20 | +/phpunit.xml | |
| 21 | +/.vagrant | |
| 22 | +/vendor/ | |
| 23 | +/fordelete.txt | |
| 24 | +/done.txt | |
| 25 | +/certificates.php | |
| 26 | +/backup | |
| 27 | +/storage/ | ... | ... |
| 1 | +AddDefaultCharset utf-8 | |
| 2 | +<IfModule mod_rewrite.c> | |
| 3 | + | |
| 4 | + | |
| 5 | + Options +FollowSymlinks | |
| 6 | + | |
| 7 | + RewriteEngine On | |
| 8 | + | |
| 9 | +</IfModule> | |
| 10 | + | |
| 11 | +<IfModule mod_rewrite.c> | |
| 12 | + | |
| 13 | + RewriteBase / | |
| 14 | + # deal with admin first | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + RewriteRule ^storage/(.*)?$ /storage/$1 [L,PT] | |
| 19 | + | |
| 20 | + RewriteCond %{REQUEST_URI} ^/(admin) | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + RewriteRule ^admin/assets/(.*)$ backend/web/assets/$1 [L] | |
| 25 | + | |
| 26 | + RewriteRule ^admin/css/(.*)$ backend/web/css/$1 [L] | |
| 27 | + | |
| 28 | + RewriteRule ^admin/js/(.*)$ backend/web/js/$1 [L] | |
| 29 | + | |
| 30 | + RewriteRule ^admin/images/(.*)$ backend/web/images/$1 [L] | |
| 31 | + | |
| 32 | + RewriteRule ^admin/fonts/(.*)$ backend/web/fonts/$1 [L] | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + RewriteCond %{REQUEST_URI} !^/backend/web/(assets|css|js|images|fonts)/ | |
| 39 | + | |
| 40 | + RewriteCond %{REQUEST_URI} ^/(admin) | |
| 41 | + | |
| 42 | + RewriteRule ^.*$ backend/web/index.php [L] | |
| 43 | + | |
| 44 | + | |
| 45 | + RewriteCond %{REQUEST_URI} ^/(assets|css) | |
| 46 | + | |
| 47 | + RewriteRule ^assets/(.*)$ frontend/web/assets/$1 [L] | |
| 48 | + | |
| 49 | + RewriteRule ^css/(.*)$ frontend/web/css/$1 [L] | |
| 50 | + | |
| 51 | + RewriteRule ^js/(.*)$ frontend/web/js/$1 [L] | |
| 52 | + | |
| 53 | + RewriteRule ^images/(.*)$ frontend/web/images/$1 [L] | |
| 54 | + | |
| 55 | + RewriteRule ^libraries/(.*)$ frontend/web/libraries/$1 [L] | |
| 56 | + | |
| 57 | + RewriteRule ^img/(.*)$ frontend/web/img/$1 [L] | |
| 58 | + | |
| 59 | + RewriteRule ^files/(.*)$ frontend/web/files/$1 [L] | |
| 60 | + | |
| 61 | + RewriteRule ^fonts/(.*)$ frontend/web/fonts/$1 [L] | |
| 62 | + | |
| 63 | + RewriteRule robots.txt$ frontend/web/robots.txt [L] | |
| 64 | + | |
| 65 | + | |
| 66 | + RewriteCond %{REQUEST_URI} !^/(frontend|backend)/web/(assets|css|txt|js|images|fonts|img|files)/ | |
| 67 | + | |
| 68 | + RewriteCond %{REQUEST_URI} !index.php | |
| 69 | + | |
| 70 | + RewriteCond %{REQUEST_FILENAME} !-f [OR] | |
| 71 | + | |
| 72 | + RewriteCond %{REQUEST_FILENAME} !-d | |
| 73 | + | |
| 74 | + RewriteCond %{HTTP_HOST} ^www\.(.*) | |
| 75 | + RewriteRule ^(.*)$ frontend/web/index.php | |
| 76 | + | |
| 77 | + | |
| 78 | + RewriteCond %{HTTP_HOST} ^([^www].*)$ | |
| 79 | + RewriteRule (.*) http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301] | |
| 80 | + | |
| 81 | + RewriteCond %{THE_REQUEST} \s/+(.+?)/+[?\s] | |
| 82 | + RewriteRule /$ /%1 [R,L] | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + RewriteCond %{HTTP_HOST} ^([^www].*)$ | |
| 87 | + RewriteRule ^(.*)$ http://www.%1/$1 [R=301] | |
| 88 | + | |
| 89 | +</IfModule> | |
| 90 | + | |
| 91 | +#для возможности загрузки файлов парсера | |
| 92 | +<IfModule mod_php5.c> | |
| 93 | + php_value upload_max_filesize 20M | |
| 94 | + php_value post_max_size 30M | |
| 95 | +</IfModule> | |
| 96 | + | |
| 97 | + | |
| 98 | +# кеширование в браузере на стороне пользователя | |
| 99 | +# | |
| 100 | +#<IfModule mod_expires.c> | |
| 101 | +# ExpiresActive On | |
| 102 | +# ExpiresDefault "access 7 days" | |
| 103 | +# ExpiresByType application/javascript "access plus 1 year" | |
| 104 | +# ExpiresByType text/javascript "access plus 1 year" | |
| 105 | +# ExpiresByType text/css "access plus 1 year" | |
| 106 | +# ExpiresByType text/html "access plus 7 day" | |
| 107 | +# ExpiresByType text/x-javascript "access 1 year" | |
| 108 | +# ExpiresByType image/gif "access plus 1 year" | |
| 109 | +# ExpiresByType image/jpeg "access plus 1 year" | |
| 110 | +# ExpiresByType image/png "access plus 1 year" | |
| 111 | +# ExpiresByType image/jpg "access plus 1 year" | |
| 112 | +# ExpiresByType image/x-icon "access 1 year" | |
| 113 | +# ExpiresByType application/x-shockwave-flash "access 1 year" | |
| 114 | +# </IfModule> | |
| 115 | +#<IfModule mod_deflate.c> | |
| 116 | +#AddOutputFilterByType DEFLATE text/plain | |
| 117 | +#AddOutputFilterByType DEFLATE text/html | |
| 118 | +#AddOutputFilterByType DEFLATE text/xml | |
| 119 | +#AddOutputFilterByType DEFLATE text/css | |
| 120 | +#AddOutputFilterByType DEFLATE application/xml | |
| 121 | +#AddOutputFilterByType DEFLATE application/xhtml+xml | |
| 122 | +#AddOutputFilterByType DEFLATE application/rss+xml | |
| 123 | +#AddOutputFilterByType DEFLATE application/javascript | |
| 124 | +#AddOutputFilterByType DEFLATE application/x-javascript | |
| 125 | +#BrowserMatch ^Mozilla/4 gzip-only-text/html | |
| 126 | +#BrowserMatch ^Mozilla/4\.0[678] no-gzip | |
| 127 | +#BrowserMatch \bMSIE !no-gzip !gzip-only-text/html | |
| 128 | +#Header append Vary User-Agent | |
| 129 | +#RewriteEngine On | |
| 130 | +#AddEncoding gzip .gz | |
| 131 | +#RewriteCond %{HTTP:Accept-encoding} gzip | |
| 132 | +#RewriteCond %{REQUEST_FILENAME}.gz -f | |
| 133 | +#RewriteRule ^(.*)$ $1.gz [QSA,L] | |
| 134 | +#</IfModule> | |
| 135 | +## Cache-Control | |
| 136 | +#<ifModule mod_headers.c> | |
| 137 | +## 30 дней | |
| 138 | +# <filesMatch "\.(ico|pdf|flv|jpg|jpeg|png|gif|swf)$"> | |
| 139 | +# Header set Cache-Control "max-age=2592000, public" | |
| 140 | +# </filesMatch> | |
| 141 | +# # 30 дней | |
| 142 | +# <filesMatch "\.(css|js)$"> | |
| 143 | +# Header set Cache-Control "max-age=2592000, public" | |
| 144 | +# </filesMatch> | |
| 145 | +# # 2 дня | |
| 146 | +# <filesMatch "\.(xml|txt)$"> | |
| 147 | +# Header set Cache-Control "max-age=172800, public, must-revalidate" | |
| 148 | +# </filesMatch> | |
| 149 | +# # 1 день | |
| 150 | +# <filesMatch "\.(html|htm|php)$"> | |
| 151 | +# Header set Cache-Control "max-age=172800, private, must-revalidate" | |
| 152 | +# </filesMatch> | |
| 153 | +#</ifModule> | |
| 154 | +# | |
| 155 | +##Запрет отдачи HTTP-заголовков Vary браузерам семейства MSIE | |
| 156 | +#<IfModule mod_setenvif.c> | |
| 157 | +#BrowserMatch "MSIE" force-no-vary | |
| 158 | +#BrowserMatch "Mozilla/4.[0-9]{2}" force-no-vary | |
| 159 | +#</IfModule> | ... | ... |