Advertisement
Guest User

Untitled

a guest
Oct 27th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. AddDefaultCharset utf-8
  2. Options -Indexes
  3.  
  4. AuthType Basic
  5. AuthName "Restricted Area"
  6. AuthUserFile /home/sal/public_html/mysite/.htpasswd
  7. Require valid-user
  8.  
  9. <IfModule mod_filter.c>
  10. AddOutputFilterByType DEFLATE "application/atom+xml" \
  11. "application/javascript" \
  12. "application/json" \
  13. "application/ld+json" \
  14. "application/manifest+json" \
  15. "application/rdf+xml" \
  16. "application/rss+xml" \
  17. "application/schema+json" \
  18. "application/vnd.geo+json" \
  19. "application/vnd.ms-fontobject" \
  20. "application/x-font-ttf" \
  21. "application/x-javascript" \
  22. "application/x-web-app-manifest+json" \
  23. "application/xhtml+xml" \
  24. "application/xml" \
  25. "font/eot" \
  26. "font/opentype" \
  27. "image/bmp" \
  28. "image/svg+xml" \
  29. "image/vnd.microsoft.icon" \
  30. "image/x-icon" \
  31. "text/cache-manifest" \
  32. "text/css" \
  33. "text/html" \
  34. "text/javascript" \
  35. "text/plain" \
  36. "text/vcard" \
  37. "text/vnd.rim.location.xloc" \
  38. "text/vtt" \
  39. "text/x-component" \
  40. "text/x-cross-domain-policy" \
  41. "text/xml"
  42.  
  43. </IfModule>
  44.  
  45. Options +FollowSymLinks
  46.  
  47. RewriteEngine On
  48.  
  49. RewriteCond %{REQUEST_FILENAME} !-f
  50. RewriteRule ^.*-([a-f0-9|0-9a-f]{13,23}\d\.jpg)$ multimedia/$1 [L]
  51.  
  52. RewriteCond %{REQUEST_FILENAME} !-d
  53. RewriteCond %{REQUEST_FILENAME} !-f
  54. RewriteRule . index.php [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement