skyframe 0.0.1.beta

Sign up to get free protection for your applications and to get access to all the features.
Files changed (111) hide show
  1. data/lib/skyframe.rb +8 -0
  2. data/lib/skyframe/version.rb +3 -0
  3. data/stylesheets/_main.scss +1 -0
  4. data/templates/project/files/404.html +157 -0
  5. data/templates/project/files/CHANGELOG.md +19 -0
  6. data/templates/project/files/about.html +96 -0
  7. data/templates/project/files/apple-touch-icon-114x114-precomposed.png +0 -0
  8. data/templates/project/files/apple-touch-icon-144x144-precomposed.png +0 -0
  9. data/templates/project/files/apple-touch-icon-57x57-precomposed.png +0 -0
  10. data/templates/project/files/apple-touch-icon-72x72-precomposed.png +0 -0
  11. data/templates/project/files/apple-touch-icon-precomposed.png +0 -0
  12. data/templates/project/files/apple-touch-icon.png +0 -0
  13. data/templates/project/files/bg_direction_nav.png +0 -0
  14. data/templates/project/files/blog-details.html +255 -0
  15. data/templates/project/files/blog.html +157 -0
  16. data/templates/project/files/config.rb +28 -0
  17. data/templates/project/files/contact.html +158 -0
  18. data/templates/project/files/crossdomain.xml +15 -0
  19. data/templates/project/files/dummy-full.png +0 -0
  20. data/templates/project/files/dummy-square.png +0 -0
  21. data/templates/project/files/favicon.ico +0 -0
  22. data/templates/project/files/flash/video-js.swf +0 -0
  23. data/templates/project/files/forgot-password.html +101 -0
  24. data/templates/project/files/htaccess.txt +536 -0
  25. data/templates/project/files/humans.txt +18 -0
  26. data/templates/project/files/icon-gmap.png +0 -0
  27. data/templates/project/files/icon-search.png +0 -0
  28. data/templates/project/files/inc/breadcrumb.html +5 -0
  29. data/templates/project/files/inc/footer.html +37 -0
  30. data/templates/project/files/inc/header.html +20 -0
  31. data/templates/project/files/inc/js-bottom.html +21 -0
  32. data/templates/project/files/inc/js-top.html +10 -0
  33. data/templates/project/files/inc/main-nav.html +7 -0
  34. data/templates/project/files/logo.png +0 -0
  35. data/templates/project/files/logo@2x.png +0 -0
  36. data/templates/project/files/media/audio/dummy-audio.mp3 +0 -0
  37. data/templates/project/files/media/video/dummy-video.mp4 +0 -0
  38. data/templates/project/files/products.html +100 -0
  39. data/templates/project/files/readme.md +55 -0
  40. data/templates/project/files/robots.txt +3 -0
  41. data/templates/project/files/services.html +75 -0
  42. data/templates/project/files/sign-in.html +104 -0
  43. data/templates/project/files/sitemap.html +102 -0
  44. data/templates/project/files/video-js.png +0 -0
  45. data/templates/project/javascripts/libs/jquery-1.8.0.min.js +2 -0
  46. data/templates/project/javascripts/libs/jquery.validationEngine.js +1819 -0
  47. data/templates/project/javascripts/libs/languages/jquery.validationEngine-cz.js +156 -0
  48. data/templates/project/javascripts/libs/languages/jquery.validationEngine-da.js +135 -0
  49. data/templates/project/javascripts/libs/languages/jquery.validationEngine-de.js +139 -0
  50. data/templates/project/javascripts/libs/languages/jquery.validationEngine-en.js +192 -0
  51. data/templates/project/javascripts/libs/languages/jquery.validationEngine-es.js +137 -0
  52. data/templates/project/javascripts/libs/languages/jquery.validationEngine-et.js +139 -0
  53. data/templates/project/javascripts/libs/languages/jquery.validationEngine-fa.js +181 -0
  54. data/templates/project/javascripts/libs/languages/jquery.validationEngine-fi.js +111 -0
  55. data/templates/project/javascripts/libs/languages/jquery.validationEngine-fr.js +129 -0
  56. data/templates/project/javascripts/libs/languages/jquery.validationEngine-hr.js +177 -0
  57. data/templates/project/javascripts/libs/languages/jquery.validationEngine-hu.js +179 -0
  58. data/templates/project/javascripts/libs/languages/jquery.validationEngine-it.js +111 -0
  59. data/templates/project/javascripts/libs/languages/jquery.validationEngine-ja.js +149 -0
  60. data/templates/project/javascripts/libs/languages/jquery.validationEngine-nl.js +136 -0
  61. data/templates/project/javascripts/libs/languages/jquery.validationEngine-pl.js +140 -0
  62. data/templates/project/javascripts/libs/languages/jquery.validationEngine-pt.js +135 -0
  63. data/templates/project/javascripts/libs/languages/jquery.validationEngine-pt_BR.js +127 -0
  64. data/templates/project/javascripts/libs/languages/jquery.validationEngine-ro.js +177 -0
  65. data/templates/project/javascripts/libs/languages/jquery.validationEngine-ru.js +136 -0
  66. data/templates/project/javascripts/libs/languages/jquery.validationEngine-se.js +153 -0
  67. data/templates/project/javascripts/libs/languages/jquery.validationEngine-tr.js +156 -0
  68. data/templates/project/javascripts/libs/languages/jquery.validationEngine-vi.js +179 -0
  69. data/templates/project/javascripts/libs/languages/jquery.validationEngine-zh_CN.js +177 -0
  70. data/templates/project/javascripts/libs/languages/jquery.validationEngine-zh_TW.js +177 -0
  71. data/templates/project/javascripts/libs/modernizr-2.5.3.min.js +4 -0
  72. data/templates/project/javascripts/libs/respond.min.js +6 -0
  73. data/templates/project/javascripts/libs/selectivizr.js +560 -0
  74. data/templates/project/javascripts/plugins.js +83 -0
  75. data/templates/project/javascripts/script.js +282 -0
  76. data/templates/project/manifest.rb +136 -0
  77. data/templates/project/partials/_debug.scss +114 -0
  78. data/templates/project/partials/_functions.scss +10 -0
  79. data/templates/project/partials/_helpers.scss +86 -0
  80. data/templates/project/partials/_layout.scss +188 -0
  81. data/templates/project/partials/_media.scss +191 -0
  82. data/templates/project/partials/_misc.scss +103 -0
  83. data/templates/project/partials/_mixins.scss +140 -0
  84. data/templates/project/partials/_mods.scss +59 -0
  85. data/templates/project/partials/_normalize.scss +36 -0
  86. data/templates/project/partials/_print.scss +80 -0
  87. data/templates/project/partials/_type.scss +331 -0
  88. data/templates/project/partials/_vars.scss +114 -0
  89. data/templates/project/partials/mods/_mod-block.scss +96 -0
  90. data/templates/project/partials/mods/_mod-breadcrumb.scss +103 -0
  91. data/templates/project/partials/mods/_mod-carousel.scss +108 -0
  92. data/templates/project/partials/mods/_mod-footer.scss +199 -0
  93. data/templates/project/partials/mods/_mod-form.scss +319 -0
  94. data/templates/project/partials/mods/_mod-header.scss +291 -0
  95. data/templates/project/partials/mods/_mod-intro.scss +98 -0
  96. data/templates/project/partials/mods/_mod-layouts.scss +135 -0
  97. data/templates/project/partials/mods/_mod-main-nav.scss +143 -0
  98. data/templates/project/partials/mods/_mod-map.scss +107 -0
  99. data/templates/project/partials/mods/_mod-msg.scss +119 -0
  100. data/templates/project/partials/mods/_mod-paging.scss +101 -0
  101. data/templates/project/partials/mods/_mod-sitemap.scss +132 -0
  102. data/templates/project/partials/mods/_mod-split-form.scss +98 -0
  103. data/templates/project/partials/mods/_mod-strip.scss +118 -0
  104. data/templates/project/partials/mods/_mod-table.scss +118 -0
  105. data/templates/project/partials/mods/_mod-widget.scss +103 -0
  106. data/templates/project/partials/plugins/_flexslider.scss +82 -0
  107. data/templates/project/partials/plugins/_validation-engine.scss +137 -0
  108. data/templates/project/partials/plugins/_video-js.scss +616 -0
  109. data/templates/project/partials/sass-template.scss +103 -0
  110. data/templates/project/screen.scss +2 -0
  111. metadata +220 -0
@@ -0,0 +1,536 @@
1
+ # Apache configuration file
2
+ # httpd.apache.org/docs/2.2/mod/quickreference.html
3
+
4
+ # Note .htaccess files are an overhead, this logic should be in your Apache config if possible
5
+ # httpd.apache.org/docs/2.2/howto/htaccess.html
6
+
7
+ # Techniques in here adapted from all over, including:
8
+ # Kroc Camen: camendesign.com/.htaccess
9
+ # perishablepress.com/press/2006/01/10/stupid-htaccess-tricks/
10
+ # Sample .htaccess file of CMS MODx: modxcms.com
11
+
12
+
13
+ ###
14
+ ### If you run a webserver other than Apache, consider:
15
+ ### github.com/h5bp/server-configs
16
+ ###
17
+
18
+
19
+
20
+ # ----------------------------------------------------------------------
21
+ # Better website experience for IE users
22
+ # ----------------------------------------------------------------------
23
+
24
+ # Force the latest IE version, in various cases when it may fall back to IE7 mode
25
+ # github.com/rails/rails/commit/123eb25#commitcomment-118920
26
+ # Use ChromeFrame if it's installed for a better experience for the poor IE folk
27
+
28
+ <IfModule mod_headers.c>
29
+ Header set X-UA-Compatible "IE=Edge,chrome=1"
30
+ # mod_headers can't match by content-type, but we don't want to send this header on *everything*...
31
+ <FilesMatch "\.(js|css|gif|png|jpe?g|pdf|xml|oga|ogg|m4a|ogv|mp4|m4v|webm|svg|svgz|eot|ttf|otf|woff|ico|webp|appcache|manifest|htc|crx|oex|xpi|safariextz|vcf)$" >
32
+ Header unset X-UA-Compatible
33
+ </FilesMatch>
34
+ </IfModule>
35
+
36
+
37
+ # ----------------------------------------------------------------------
38
+ # Cross-domain AJAX requests
39
+ # ----------------------------------------------------------------------
40
+
41
+ # Serve cross-domain Ajax requests, disabled by default.
42
+ # enable-cors.org
43
+ # code.google.com/p/html5security/wiki/CrossOriginRequestSecurity
44
+
45
+ # <IfModule mod_headers.c>
46
+ # Header set Access-Control-Allow-Origin "*"
47
+ # </IfModule>
48
+
49
+
50
+ # ----------------------------------------------------------------------
51
+ # CORS-enabled images (@crossorigin)
52
+ # ----------------------------------------------------------------------
53
+
54
+ # Send CORS headers if browsers request them; enabled by default for images.
55
+ # developer.mozilla.org/en/CORS_Enabled_Image
56
+ # blog.chromium.org/2011/07/using-cross-domain-images-in-webgl-and.html
57
+ # hacks.mozilla.org/2011/11/using-cors-to-load-webgl-textures-from-cross-domain-images/
58
+ # wiki.mozilla.org/Security/Reviews/crossoriginAttribute
59
+
60
+ <IfModule mod_setenvif.c>
61
+ <IfModule mod_headers.c>
62
+ # mod_headers, y u no match by Content-Type?!
63
+ <FilesMatch "\.(gif|png|jpe?g|svg|svgz|ico|webp)$">
64
+ SetEnvIf Origin ":" IS_CORS
65
+ Header set Access-Control-Allow-Origin "*" env=IS_CORS
66
+ </FilesMatch>
67
+ </IfModule>
68
+ </IfModule>
69
+
70
+
71
+ # ----------------------------------------------------------------------
72
+ # Webfont access
73
+ # ----------------------------------------------------------------------
74
+
75
+ # Allow access from all domains for webfonts.
76
+ # Alternatively you could only whitelist your
77
+ # subdomains like "subdomain.example.com".
78
+
79
+ <IfModule mod_headers.c>
80
+ <FilesMatch "\.(ttf|ttc|otf|eot|woff|font.css)$">
81
+ Header set Access-Control-Allow-Origin "*"
82
+ </FilesMatch>
83
+ </IfModule>
84
+
85
+
86
+
87
+ # ----------------------------------------------------------------------
88
+ # Proper MIME type for all files
89
+ # ----------------------------------------------------------------------
90
+
91
+
92
+ # JavaScript
93
+ # Normalize to standard type (it's sniffed in IE anyways)
94
+ # tools.ietf.org/html/rfc4329#section-7.2
95
+ AddType application/javascript js
96
+
97
+ # Audio
98
+ AddType audio/ogg oga ogg
99
+ AddType audio/mp4 m4a
100
+
101
+ # Video
102
+ AddType video/ogg ogv
103
+ AddType video/mp4 mp4 m4v
104
+ AddType video/webm webm
105
+
106
+ # SVG
107
+ # Required for svg webfonts on iPad
108
+ # twitter.com/FontSquirrel/status/14855840545
109
+ AddType image/svg+xml svg svgz
110
+ AddEncoding gzip svgz
111
+
112
+ # Webfonts
113
+ AddType application/vnd.ms-fontobject eot
114
+ AddType application/x-font-ttf ttf ttc
115
+ AddType font/opentype otf
116
+ AddType application/x-font-woff woff
117
+
118
+ # Assorted types
119
+ AddType image/x-icon ico
120
+ AddType image/webp webp
121
+ AddType text/cache-manifest appcache manifest
122
+ AddType text/x-component htc
123
+ AddType application/x-chrome-extension crx
124
+ AddType application/x-opera-extension oex
125
+ AddType application/x-xpinstall xpi
126
+ AddType application/octet-stream safariextz
127
+ AddType application/x-web-app-manifest+json webapp
128
+ AddType text/x-vcard vcf
129
+
130
+
131
+
132
+ # ----------------------------------------------------------------------
133
+ # Allow concatenation from within specific js and css files
134
+ # ----------------------------------------------------------------------
135
+
136
+ # e.g. Inside of script.combined.js you could have
137
+ # <!--#include file="libs/jquery-1.5.0.min.js" -->
138
+ # <!--#include file="plugins/jquery.idletimer.js" -->
139
+ # and they would be included into this single file.
140
+
141
+ # This is not in use in the boilerplate as it stands. You may
142
+ # choose to name your files in this way for this advantage or
143
+ # concatenate and minify them manually.
144
+ # Disabled by default.
145
+
146
+ #<FilesMatch "\.combined\.js$">
147
+ # Options +Includes
148
+ # AddOutputFilterByType INCLUDES application/javascript application/json
149
+ # SetOutputFilter INCLUDES
150
+ #</FilesMatch>
151
+ #<FilesMatch "\.combined\.css$">
152
+ # Options +Includes
153
+ # AddOutputFilterByType INCLUDES text/css
154
+ # SetOutputFilter INCLUDES
155
+ #</FilesMatch>
156
+
157
+
158
+ # ----------------------------------------------------------------------
159
+ # Gzip compression
160
+ # ----------------------------------------------------------------------
161
+
162
+ <IfModule mod_deflate.c>
163
+
164
+ # Force deflate for mangled headers developer.yahoo.com/blogs/ydn/posts/2010/12/pushing-beyond-gzipping/
165
+ <IfModule mod_setenvif.c>
166
+ <IfModule mod_headers.c>
167
+ SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
168
+ RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
169
+ </IfModule>
170
+ </IfModule>
171
+
172
+ # HTML, TXT, CSS, JavaScript, JSON, XML, HTC:
173
+ <IfModule filter_module>
174
+ FilterDeclare COMPRESS
175
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $text/html
176
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $text/css
177
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $text/plain
178
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $text/xml
179
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $text/x-component
180
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $application/javascript
181
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $application/json
182
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xml
183
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $application/xhtml+xml
184
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $application/rss+xml
185
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $application/atom+xml
186
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $application/vnd.ms-fontobject
187
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $image/svg+xml
188
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $image/x-icon
189
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $application/x-font-ttf
190
+ FilterProvider COMPRESS DEFLATE resp=Content-Type $font/opentype
191
+ FilterChain COMPRESS
192
+ FilterProtocol COMPRESS DEFLATE change=yes;byteranges=no
193
+ </IfModule>
194
+
195
+ <IfModule !mod_filter.c>
196
+ # Legacy versions of Apache
197
+ AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
198
+ AddOutputFilterByType DEFLATE application/javascript
199
+ AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
200
+ AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
201
+ AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
202
+ </IfModule>
203
+
204
+ </IfModule>
205
+
206
+
207
+ # ----------------------------------------------------------------------
208
+ # Expires headers (for better cache control)
209
+ # ----------------------------------------------------------------------
210
+
211
+ # These are pretty far-future expires headers.
212
+ # They assume you control versioning with cachebusting query params like
213
+ # <script src="application.js?20100608">
214
+ # Additionally, consider that outdated proxies may miscache
215
+ # www.stevesouders.com/blog/2008/08/23/revving-filenames-dont-use-querystring/
216
+
217
+ # If you don't use filenames to version, lower the CSS and JS to something like
218
+ # "access plus 1 week" or so.
219
+
220
+ <IfModule mod_expires.c>
221
+ ExpiresActive on
222
+
223
+ # Perhaps better to whitelist expires rules? Perhaps.
224
+ ExpiresDefault "access plus 1 month"
225
+
226
+ # cache.appcache needs re-requests in FF 3.6 (thanks Remy ~Introducing HTML5)
227
+ ExpiresByType text/cache-manifest "access plus 0 seconds"
228
+
229
+ # Your document html
230
+ ExpiresByType text/html "access plus 0 seconds"
231
+
232
+ # Data
233
+ ExpiresByType text/xml "access plus 0 seconds"
234
+ ExpiresByType application/xml "access plus 0 seconds"
235
+ ExpiresByType application/json "access plus 0 seconds"
236
+
237
+ # Feed
238
+ ExpiresByType application/rss+xml "access plus 1 hour"
239
+ ExpiresByType application/atom+xml "access plus 1 hour"
240
+
241
+ # Favicon (cannot be renamed)
242
+ ExpiresByType image/x-icon "access plus 1 week"
243
+
244
+ # Media: images, video, audio
245
+ ExpiresByType image/gif "access plus 1 month"
246
+ ExpiresByType image/png "access plus 1 month"
247
+ ExpiresByType image/jpg "access plus 1 month"
248
+ ExpiresByType image/jpeg "access plus 1 month"
249
+ ExpiresByType video/ogg "access plus 1 month"
250
+ ExpiresByType audio/ogg "access plus 1 month"
251
+ ExpiresByType video/mp4 "access plus 1 month"
252
+ ExpiresByType video/webm "access plus 1 month"
253
+
254
+ # HTC files (css3pie)
255
+ ExpiresByType text/x-component "access plus 1 month"
256
+
257
+ # Webfonts
258
+ ExpiresByType application/x-font-ttf "access plus 1 month"
259
+ ExpiresByType font/opentype "access plus 1 month"
260
+ ExpiresByType application/x-font-woff "access plus 1 month"
261
+ ExpiresByType image/svg+xml "access plus 1 month"
262
+ ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
263
+
264
+ # CSS and JavaScript
265
+ ExpiresByType text/css "access plus 1 year"
266
+ ExpiresByType application/javascript "access plus 1 year"
267
+
268
+ </IfModule>
269
+
270
+
271
+
272
+ # ----------------------------------------------------------------------
273
+ # ETag removal
274
+ # ----------------------------------------------------------------------
275
+
276
+ # FileETag None is not enough for every server.
277
+ <IfModule mod_headers.c>
278
+ Header unset ETag
279
+ </IfModule>
280
+
281
+ # Since we're sending far-future expires, we don't need ETags for
282
+ # static content.
283
+ # developer.yahoo.com/performance/rules.html#etags
284
+ FileETag None
285
+
286
+
287
+
288
+ # ----------------------------------------------------------------------
289
+ # Stop screen flicker in IE on CSS rollovers
290
+ # ----------------------------------------------------------------------
291
+
292
+ # The following directives stop screen flicker in IE on CSS rollovers - in
293
+ # combination with the "ExpiresByType" rules for images (see above). If
294
+ # needed, un-comment the following rules.
295
+
296
+ # BrowserMatch "MSIE" brokenvary=1
297
+ # BrowserMatch "Mozilla/4.[0-9]{2}" brokenvary=1
298
+ # BrowserMatch "Opera" !brokenvary
299
+ # SetEnvIf brokenvary 1 force-no-vary
300
+
301
+
302
+
303
+ # ----------------------------------------------------------------------
304
+ # Cookie setting from iframes
305
+ # ----------------------------------------------------------------------
306
+
307
+ # Allow cookies to be set from iframes (for IE only)
308
+ # If needed, uncomment and specify a path or regex in the Location directive
309
+
310
+ # <IfModule mod_headers.c>
311
+ # <Location />
312
+ # Header set P3P "policyref=\"/w3c/p3p.xml\", CP=\"IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS OUR IND CNT\""
313
+ # </Location>
314
+ # </IfModule>
315
+
316
+
317
+
318
+ # ----------------------------------------------------------------------
319
+ # Start rewrite engine
320
+ # ----------------------------------------------------------------------
321
+
322
+ # Turning on the rewrite engine is necessary for the following rules and features.
323
+ # FollowSymLinks must be enabled for this to work.
324
+
325
+ <IfModule mod_rewrite.c>
326
+ Options +FollowSymlinks
327
+ RewriteEngine On
328
+ </IfModule>
329
+
330
+
331
+
332
+ # ----------------------------------------------------------------------
333
+ # Suppress or force the "www." at the beginning of URLs
334
+ # ----------------------------------------------------------------------
335
+
336
+ # The same content should never be available under two different URLs - especially not with and
337
+ # without "www." at the beginning, since this can cause SEO problems (duplicate content).
338
+ # That's why you should choose one of the alternatives and redirect the other one.
339
+
340
+ # By default option 1 (no "www.") is activated. Remember: Shorter URLs are sexier.
341
+ # no-www.org/faq.php?q=class_b
342
+
343
+ # If you rather want to use option 2, just comment out all option 1 lines
344
+ # and uncomment option 2.
345
+ # IMPORTANT: NEVER USE BOTH RULES AT THE SAME TIME!
346
+
347
+ # ----------------------------------------------------------------------
348
+
349
+ # Option 1:
350
+ # Rewrite "www.example.com -> example.com"
351
+
352
+ <IfModule mod_rewrite.c>
353
+ RewriteCond %{HTTPS} !=on
354
+ RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
355
+ RewriteRule ^ http://%1%{REQUEST_URI} [R=301,L]
356
+ </IfModule>
357
+
358
+ # ----------------------------------------------------------------------
359
+
360
+ # Option 2:
361
+ # To rewrite "example.com -> www.example.com" uncomment the following lines.
362
+ # Be aware that the following rule might not be a good idea if you
363
+ # use "real" subdomains for certain parts of your website.
364
+
365
+ # <IfModule mod_rewrite.c>
366
+ # RewriteCond %{HTTPS} !=on
367
+ # RewriteCond %{HTTP_HOST} !^www\..+$ [NC]
368
+ # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
369
+ # </IfModule>
370
+
371
+
372
+
373
+ # ----------------------------------------------------------------------
374
+ # Built-in filename-based cache busting
375
+ # ----------------------------------------------------------------------
376
+
377
+ # If you're not using the build script to manage your filename version revving,
378
+ # you might want to consider enabling this, which will route requests for
379
+ # /css/style.20110203.css to /css/style.css
380
+
381
+ # To understand why this is important and a better idea than all.css?v1231,
382
+ # read: github.com/h5bp/html5-boilerplate/wiki/Version-Control-with-Cachebusting
383
+
384
+ # Uncomment to enable.
385
+ # <IfModule mod_rewrite.c>
386
+ # RewriteCond %{REQUEST_FILENAME} !-f
387
+ # RewriteCond %{REQUEST_FILENAME} !-d
388
+ # RewriteRule ^(.+)\.(\d+)\.(js|css|png|jpg|gif)$ $1.$3 [L]
389
+ # </IfModule>
390
+
391
+
392
+
393
+ # ----------------------------------------------------------------------
394
+ # Prevent SSL cert warnings
395
+ # ----------------------------------------------------------------------
396
+
397
+ # Rewrite secure requests properly to prevent SSL cert warnings, e.g. prevent
398
+ # https://www.example.com when your cert only allows https://secure.example.com
399
+ # Uncomment the following lines to use this feature.
400
+
401
+ # <IfModule mod_rewrite.c>
402
+ # RewriteCond %{SERVER_PORT} !^443
403
+ # RewriteRule ^ https://example-domain-please-change-me.com%{REQUEST_URI} [R=301,L]
404
+ # </IfModule>
405
+
406
+
407
+
408
+ # ----------------------------------------------------------------------
409
+ # Prevent 404 errors for non-existing redirected folders
410
+ # ----------------------------------------------------------------------
411
+
412
+ # without -MultiViews, Apache will give a 404 for a rewrite if a folder of the same name does not exist
413
+ # e.g. /blog/hello : webmasterworld.com/apache/3808792.htm
414
+
415
+ Options -MultiViews
416
+
417
+
418
+
419
+ # ----------------------------------------------------------------------
420
+ # Custom 404 page
421
+ # ----------------------------------------------------------------------
422
+
423
+ # You can add custom pages to handle 500 or 403 pretty easily, if you like.
424
+ ErrorDocument 404 /404.html
425
+
426
+
427
+
428
+ # ----------------------------------------------------------------------
429
+ # UTF-8 encoding
430
+ # ----------------------------------------------------------------------
431
+
432
+ # Use UTF-8 encoding for anything served text/plain or text/html
433
+ AddDefaultCharset utf-8
434
+
435
+ # Force UTF-8 for a number of file formats
436
+ AddCharset utf-8 .css .js .xml .json .rss .atom
437
+
438
+
439
+
440
+ # ----------------------------------------------------------------------
441
+ # A little more security
442
+ # ----------------------------------------------------------------------
443
+
444
+
445
+ # Do we want to advertise the exact version number of Apache we're running?
446
+ # Probably not.
447
+ ## This can only be enabled if used in httpd.conf - It will not work in .htaccess
448
+ # ServerTokens Prod
449
+
450
+
451
+ # "-Indexes" will have Apache block users from browsing folders without a default document
452
+ # Usually you should leave this activated, because you shouldn't allow everybody to surf through
453
+ # every folder on your server (which includes rather private places like CMS system folders).
454
+ <IfModule mod_autoindex.c>
455
+ Options -Indexes
456
+ </IfModule>
457
+
458
+
459
+ # Block access to "hidden" directories whose names begin with a period. This
460
+ # includes directories used by version control systems such as Subversion or Git.
461
+ <IfModule mod_rewrite.c>
462
+ RewriteCond %{SCRIPT_FILENAME} -d
463
+ RewriteCond %{SCRIPT_FILENAME} -f
464
+ RewriteRule "(^|/)\." - [F]
465
+ </IfModule>
466
+
467
+
468
+ # Block access to backup and source files
469
+ # This files may be left by some text/html editors and
470
+ # pose a great security danger, when someone can access them
471
+ <FilesMatch "(\.(bak|config|sql|fla|psd|ini|log|sh|inc|swp|dist)|~)$">
472
+ Order allow,deny
473
+ Deny from all
474
+ Satisfy All
475
+ </FilesMatch>
476
+
477
+
478
+ # If your server is not already configured as such, the following directive
479
+ # should be uncommented in order to set PHP's register_globals option to OFF.
480
+ # This closes a major security hole that is abused by most XSS (cross-site
481
+ # scripting) attacks. For more information: http://php.net/register_globals
482
+ #
483
+ # IF REGISTER_GLOBALS DIRECTIVE CAUSES 500 INTERNAL SERVER ERRORS :
484
+ #
485
+ # Your server does not allow PHP directives to be set via .htaccess. In that
486
+ # case you must make this change in your php.ini file instead. If you are
487
+ # using a commercial web host, contact the administrators for assistance in
488
+ # doing this. Not all servers allow local php.ini files, and they should
489
+ # include all PHP configurations (not just this one), or you will effectively
490
+ # reset everything to PHP defaults. Consult www.php.net for more detailed
491
+ # information about setting PHP directives.
492
+
493
+ # php_flag register_globals Off
494
+
495
+ # Rename session cookie to something else, than PHPSESSID
496
+ # php_value session.name sid
497
+
498
+ # Do not show you are using PHP
499
+ # Note: Move this line to php.ini since it won't work in .htaccess
500
+ # php_flag expose_php Off
501
+
502
+ # Level of log detail - log all errors
503
+ # php_value error_reporting -1
504
+
505
+ # Write errors to log file
506
+ # php_flag log_errors On
507
+
508
+ # Do not display errors in browser (production - Off, development - On)
509
+ # php_flag display_errors Off
510
+
511
+ # Do not display startup errors (production - Off, development - On)
512
+ # php_flag display_startup_errors Off
513
+
514
+ # Format errors in plain text
515
+ # Note: Leave this setting 'On' for xdebug's var_dump() output
516
+ # php_flag html_errors Off
517
+
518
+ # Show multiple occurrence of error
519
+ # php_flag ignore_repeated_errors Off
520
+
521
+ # Show same errors from different sources
522
+ # php_flag ignore_repeated_source Off
523
+
524
+ # Size limit for error messages
525
+ # php_value log_errors_max_len 1024
526
+
527
+ # Don't precede error with string (doesn't accept empty string, use whitespace if you need)
528
+ # php_value error_prepend_string " "
529
+
530
+ # Don't prepend to error (doesn't accept empty string, use whitespace if you need)
531
+ # php_value error_append_string " "
532
+
533
+ # Increase cookie security
534
+ <IfModule php5_module>
535
+ php_value session.cookie_httponly true
536
+ </IfModule>