Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.04 KB | None | 0 0
  1. # BEGIN PRERENDER
  2. RewriteEngine On
  3. RewriteBase /
  4. RewriteCond %{REQUEST_FILENAME} !-f
  5. RewriteCond %{HTTP_USER_AGENT} Googlebot|bingbot|Googlebot-Mobile|Baiduspider|Yahoo|YahooSeeker|DoCoMo|Twitterbot|TweetmemeBot|Twikle|Netseer|Daumoa|SeznamBot|Ezooms|MSNBot|Exabot|MJ12bot|sogou\sspider|YandexBot|bitlybot|ia_archiver|proximic|spbot|ChangeDetection|NaverBot|MetaJobBot|magpie-crawler|Genieo\sWeb\sfilter|Qualidator.com\sBot|Woko|Vagabondo|360Spider|ExB\sLanguage\sCrawler|AddThis.com|aiHitBot|Spinn3r|BingPreview|GrapeshotCrawler|CareerBot|ZumBot|ShopWiki|bixocrawler|uMBot|sistrix|linkdexbot|AhrefsBot|archive.org_bot|SeoCheckBot|TurnitinBot|VoilaBot|SearchmetricsBot|Butterfly|Yahoo!|Plukkie|yacybot|trendictionbot|UASlinkChecker|Blekkobot|Wotbox|YioopBot|meanpathbot|TinEye|LuminateBot|FyberSpider|Infohelfer|linkdex.com|Curious\sGeorge|Fetch-Guess|ichiro|MojeekBot|SBSearch|WebThumbnail|socialbm_bot|SemrushBot|Vedma|alexa\ssite\saudit|SEOkicks-Robot|Browsershots|BLEXBot|woriobot|AMZNKAssocBot|Speedy|oBot|HostTracker|OpenWebSpider|WBSearchBot|FacebookExternalHit [NC,OR]
  6. RewriteCond %{QUERY_STRING} _escaped_fragment_|prerender=1
  7. RewriteCond %{HTTP_USER_AGENT} !^Prerender
  8. RewriteRule ^(.*)?$ http://prerender.herokuapp.com/http://%{HTTP_HOST}/$1 [P,L]
  9. # END PRERENDER
  10.  
  11. # BEGIN MIME TYPES
  12. AddType video/ogg .ogv
  13. AddType video/mp4 .mp4
  14. AddType video/webm .webm
  15. AddType image/svg+xml .svg
  16. AddType application/x-font-woff .woffa
  17. AddType application/vnd.ms-fontobject .eot
  18. AddType application/octet-stream .otf .ttf
  19. AddType text/x-component .htc
  20. # END MIME TYPES
  21.  
  22. # BEGIN GZIP
  23. <ifmodule mod_deflate.c>
  24. AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css text/javascript application/x-javascript application/javascript application/json
  25. BrowserMatch ^Mozilla/4 gzip-only-text/html
  26. BrowserMatch ^Mozilla/4\.[0678] no-gzip
  27. BrowserMatch \bMSIE\s7 !no-gzip !gzip-only-text/html
  28. BrowserMatch \bOpera !no-gzip
  29. </ifmodule>
  30. # END GZIP
  31.  
  32. # BEGIN EXPIRES
  33. <ifModule mod_expires.c>
  34. ExpiresActive On
  35. ExpiresDefault "access plus 1 seconds"
  36. ExpiresByType text/html "access plus 1 seconds"
  37. ExpiresByType image/gif "access plus 2592000 seconds"
  38. ExpiresByType image/jpeg "access plus 2592000 seconds"
  39. ExpiresByType image/png "access plus 2592000 seconds"
  40. ExpiresByType image/svg+xml "access plus 2592000 seconds"
  41. ExpiresByType application/x-font-woff "access plus 2592000 seconds"
  42. ExpiresByType application/vnd.ms-fontobject "access plus 2592000 seconds"
  43. ExpiresByType application/octet-stream "access plus 2592000 seconds"
  44. ExpiresByType text/plain "access plus 604800 seconds"
  45. ExpiresByType text/css "access plus 604800 seconds"
  46. ExpiresByType text/javascript "access plus 216000 seconds"
  47. ExpiresByType application/x-javascript "access plus 216000 seconds"
  48. </ifModule>
  49. # END EXPIRES
  50.  
  51. # BEGIN CACHE-CONTROL
  52. <ifModule mod_headers.c>
  53. <filesMatch "\\.(ico|pdf|flv|jpg|jpeg|png|gif|swf|svg|woff|eot|ttf|otf)$">
  54. Header set Cache-Control "max-age=2592000, public"
  55. </filesMatch>
  56. <filesMatch "\\.(css)$">
  57. Header set Cache-Control "max-age=604800, public"
  58. </filesMatch>
  59. <filesMatch "\\.(js)$">
  60. Header set Cache-Control "max-age=216000, private"
  61. </filesMatch>
  62. <filesMatch "\\.(xml|txt)$">
  63. Header set Cache-Control "max-age=216000, public, must-revalidate"
  64. </filesMatch>
  65. <filesMatch "\\.(html|htm|php)$">
  66. Header set Cache-Control "max-age=1, private, must-revalidate"
  67. </filesMatch>
  68. </ifModule>
  69. # END CACHE-CONTROL
  70.  
  71. # BEGIN ETAG
  72. <ifModule mod_headers.c>
  73. Header unset ETag
  74. </ifModule>
  75. FileETag None
  76. # END ETAG
  77.  
  78. # BEGIN LAST MODIFIED
  79. <ifModule mod_headers.c>
  80. Header unset Last-Modified
  81. </ifModule>
  82. # END LAST MODIFIED
  83.  
  84. # BEGIN ACCESS CONTROL
  85. <ifModule mod_headers.c>
  86. Header set Access-Control-Allow-Origin "*"
  87. </ifModule>
  88. # END ACCESS CONTROL
  89.  
  90. # BEGIN CI
  91. RewriteEngine On
  92. RewriteCond %{REQUEST_URI} ^/system.*
  93. RewriteRule ^(.*)$ index.php?/$1 [L]
  94. RewriteCond %{REQUEST_FILENAME} !-f
  95. RewriteCond %{REQUEST_FILENAME} !-d
  96. RewriteRule ^(.+)$ index.php?/$1 [L]
  97. # END CI
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement