Facebook
From Obese Ibis, 4 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 114
  1. <IfModule mod_rewrite.c>
  2.  
  3. # PrestaShop current domain: 'localhost:5001'
  4.  
  5. RewriteEngine on
  6. RewriteCond %{HTTP_HOST} ^localhost:5001$
  7. RewriteRule . - [E=REWRITEBASE:/]
  8. RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
  9.  
  10. # Images
  11. RewriteCond %{HTTP_HOST} ^localhost:5001$
  12. RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
  13. RewriteCond %{HTTP_HOST} ^localhost:5001$
  14. RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
  15. RewriteCond %{HTTP_HOST} ^localhost:5001$
  16. RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
  17. RewriteCond %{HTTP_HOST} ^localhost:5001$
  18. RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
  19. RewriteCond %{HTTP_HOST} ^localhost:5001$
  20. RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
  21. RewriteCond %{HTTP_HOST} ^localhost:5001$
  22. RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
  23. RewriteCond %{HTTP_HOST} ^localhost:5001$
  24. RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
  25. RewriteCond %{HTTP_HOST} ^localhost:5001$
  26. RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
  27. RewriteCond %{HTTP_HOST} ^localhost:5001$
  28. RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
  29. RewriteCond %{HTTP_HOST} ^localhost:5001$
  30. RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
  31. # AlphaImageLoader for IE and fancybox
  32. RewriteCond %{HTTP_HOST} ^localhost:5001$
  33. RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
  34.  
  35. # Dispatcher
  36. RewriteCond %{REQUEST_FILENAME} -s [OR]
  37. RewriteCond %{REQUEST_FILENAME} -l [OR]
  38. RewriteCond %{REQUEST_FILENAME} -d
  39. RewriteCond %{HTTP_HOST} ^localhost:5001$
  40. RewriteRule ^.*$ - [NC,L]
  41. RewriteCond %{HTTP_HOST} ^localhost:5001$
  42. RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
  43.  
  44. # SSL Configuration
  45. RewriteCond %{HTTP_HOST} ^localhost:5002$
  46. RewriteRule . - [E=REWRITEBASE:/]
  47. RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
  48.  
  49. # Images
  50. RewriteCond %{HTTP_HOST} ^localhost:5002$
  51. RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
  52. RewriteCond %{HTTP_HOST} ^localhost:5002$
  53. RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
  54. RewriteCond %{HTTP_HOST} ^localhost:5002$
  55. RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
  56. RewriteCond %{HTTP_HOST} ^localhost:5002$
  57. RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
  58. RewriteCond %{HTTP_HOST} ^localhost:5002$
  59. RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
  60. RewriteCond %{HTTP_HOST} ^localhost:5002$
  61. RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
  62. RewriteCond %{HTTP_HOST} ^localhost:5002$
  63. RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
  64. RewriteCond %{HTTP_HOST} ^localhost:5002$
  65. RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
  66. RewriteCond %{HTTP_HOST} ^localhost:5002$
  67. RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
  68. RewriteCond %{HTTP_HOST} ^localhost:5002$
  69. RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
  70. # AlphaImageLoader for IE and fancybox
  71. RewriteCond %{HTTP_HOST} ^localhost:5002$
  72. RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
  73.  
  74. # Dispatcher
  75. RewriteCond %{REQUEST_FILENAME} -s [OR]
  76. RewriteCond %{REQUEST_FILENAME} -l [OR]
  77. RewriteCond %{REQUEST_FILENAME} -d
  78. RewriteCond %{HTTP_HOST} ^localhost:5002$
  79. RewriteRule ^.*$ - [NC,L]
  80. RewriteCond %{HTTP_HOST} ^localhost:5002$
  81. RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
  82. </IfModule>
  83.  
  84. <IfModule mod_expires.c>
  85. ExpiresActive On
  86. ExpiresByType image/gif "access plus 1 month"
  87. ExpiresByType image/jpeg "access plus 1 month"
  88. ExpiresByType image/png "access plus 1 month"
  89. ExpiresByType text/css "access plus 1 week"
  90. ExpiresByType text/javascript "access plus 1 week"
  91. ExpiresByType application/javascript "access plus 1 week"
  92. ExpiresByType application/x-javascript "access plus 1 week"
  93. ExpiresByType image/x-icon "access plus 1 year"
  94. ExpiresByType image/svg+xml "access plus 1 year"
  95. ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
  96. ExpiresByType application/font-woff "access plus 1 year"
  97. ExpiresByType application/x-font-woff "access plus 1 year"
  98. ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
  99. ExpiresByType font/opentype "access plus 1 year"
  100. ExpiresByType font/ttf "access plus 1 year"
  101. ExpiresByType font/otf "access plus 1 year"
  102. ExpiresByType application/x-font-ttf "access plus 1 year"
  103. ExpiresByType application/x-font-otf "access plus 1 year"
  104. </IfModule>
  105.  
  106. FileETag INode MTime Size
  107. <IfModule mod_deflate.c>
  108.   <IfModule mod_filter.c>
  109.     AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript
  110.   </IfModule>
  111. </IfModule>
  112.  
  113. # If rewrite mod isn't enabled
  114. ErrorDocument 404 /index.php?controller=404
  115.  
  116. # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
  117. # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
  118. # http://www.prestashop.com - http://www.prestashop.com/forums
  119.  
  120. <IfModule mod_rewrite.c>
  121. <IfModule mod_env.c>
  122. SetEnv HTTP_MOD_REWRITE On
  123. </IfModule>
  124.  
  125. RewriteEngine on
  126.  
  127.  
  128. #Domain: sklep.zamowfronty.pl
  129. RewriteRule . - [E=REWRITEBASE:/]
  130. RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
  131.  
  132. # AlphaImageLoader for IE and fancybox
  133. RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
  134. </IfModule>
  135.  
  136. AddType application/vnd.ms-fontobject .eot
  137. AddType font/ttf .ttf
  138. AddType font/otf .otf
  139. AddType application/font-woff .woff
  140. AddType font/woff2 .woff2
  141. <IfModule mod_headers.c>
  142.         <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$">
  143.                 Header set Access-Control-Allow-Origin "*"
  144.         </FilesMatch>
  145. </IfModule>
  146.  
  147. <IfModule mod_expires.c>
  148.         ExpiresActive On
  149.         ExpiresByType image/gif "access plus 1 month"
  150.         ExpiresByType image/jpeg "access plus 1 month"
  151.         ExpiresByType image/png "access plus 1 month"
  152.         ExpiresByType text/css "access plus 1 week"
  153.         ExpiresByType text/javascript "access plus 1 week"
  154.         ExpiresByType application/javascript "access plus 1 week"
  155.         ExpiresByType application/x-javascript "access plus 1 week"
  156.         ExpiresByType image/x-icon "access plus 1 year"
  157.         ExpiresByType image/svg+xml "access plus 1 year"
  158.         ExpiresByType image/vnd.microsoft.icon "access plus 1 year"
  159.         ExpiresByType application/font-woff "access plus 1 year"
  160.         ExpiresByType application/x-font-woff "access plus 1 year"
  161.         ExpiresByType font/woff2 "access plus 1 year"
  162.         ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
  163.         ExpiresByType font/opentype "access plus 1 year"
  164.         ExpiresByType font/ttf "access plus 1 year"
  165.         ExpiresByType font/otf "access plus 1 year"
  166.         ExpiresByType application/x-font-ttf "access plus 1 year"
  167.         ExpiresByType application/x-font-otf "access plus 1 year"
  168. </IfModule>
  169.  
  170. <IfModule mod_headers.c>
  171.     Header unset Etag
  172. </IfModule>
  173. FileETag none
  174. <IfModule mod_deflate.c>
  175.     <IfModule mod_filter.c>
  176.         AddOutputFilterByType DEFLATE text/html text/css text/javascript application/javascript application/x-javascript font/ttf application/x-font-ttf font/otf application/x-font-otf font/opentype image/svg+xml
  177.     </IfModule>
  178. </IfModule>
  179.  
  180. #If rewrite mod isn't enabled
  181. ErrorDocument 404 /index.php?controller=404
  182.  
  183. # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
  184.  
  185.