Guest User

Untitled

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