nightmous

Untitled

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