Advertisement
Guest User

.hta

a guest
Jan 19th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.03 KB | None | 0 0
  1. 1. # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
  2. 2. # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
  3. 3. # http://www.prestashop.com - http://www.prestashop.com/forums
  4. 4.  
  5. 5. <IfModule mod_rewrite.c>
  6. 6. <IfModule mod_env.c>
  7. 7. SetEnv HTTP_MOD_REWRITE On
  8. 8. </IfModule>
  9. 9.  
  10. 10. RewriteEngine on
  11. 11.  
  12. 12.  
  13. 13. #Domain: shop.psycho-coils.de
  14. 14. RewriteRule . - [E=REWRITEBASE:/]
  15. 15. RewriteRule ^api$ api/ [L]
  16. 16.  
  17. 17. RewriteRule ^api/(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]
  18. 18.  
  19. 19. # Images
  20. 20. RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
  21. 21. RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
  22. 22. 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]
  23. 23. 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]
  24. 24. 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]
  25. 25. 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]
  26. 26. 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]
  27. 27. 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]
  28. 28. RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
  29. 29. RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
  30. 30. # AlphaImageLoader for IE and fancybox
  31. 31. RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
  32. 32.  
  33. 33. # Dispatcher
  34. 34. RewriteCond %{REQUEST_FILENAME} -s [OR]
  35. 35. RewriteCond %{REQUEST_FILENAME} -l [OR]
  36. 36. RewriteCond %{REQUEST_FILENAME} -d
  37. 37. RewriteRule ^.*$ - [NC,L]
  38. 38. RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
  39. 39. </IfModule>
  40. 40.  
  41. 41. AddType application/vnd.ms-fontobject .eot
  42. 42. AddType font/ttf .ttf
  43. 43. AddType font/otf .otf
  44. 44. AddType font/woff2 .woff2
  45. 45. AddType application/x-font-woff .woff
  46. 46. <IfModule mod_headers.c>
  47. 47. <FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$">
  48. 48. Header set Access-Control-Allow-Origin "*"
  49. 49. </FilesMatch>
  50. 50. </IfModule>
  51. 51.  
  52. 52. #If rewrite mod isn't enabled
  53. 53. ErrorDocument 404 /index.php?controller=404
  54. 54.  
  55. 55. # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement