Advertisement
Warfront1

Untitled

Jan 26th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. ========================
  2. OLD HTACCESS
  3. ========================
  4. DirectoryIndex home.php index.php index.html index.htm
  5.  
  6. <Files ~ "\.(gif|jpe?g|png|js|css|swf|ico)$">
  7. ErrorDocument 404 default
  8. </Files>
  9.  
  10. ErrorDocument 401 default
  11.  
  12.  
  13. ========================
  14. NEW HTACCESS
  15. ========================
  16. <Files "*.php*">
  17. Deny from all
  18. </Files>
  19.  
  20. <Files "*.pl">
  21. Deny from all
  22. </Files>
  23.  
  24. Allow from all
  25.  
  26. # Speed-Up [[[
  27. <IfModule mod_expires.c>
  28. ExpiresActive On
  29. ExpiresDefault A86400
  30. ExpiresByType image/x-icon A2419200
  31. ExpiresByType image/gif A604800
  32. ExpiresByType image/png A604800
  33. ExpiresByType image/jpeg A604800
  34. ExpiresByType application/x-shockwave-flash A604800
  35. </IfModule>
  36. # /Speed-Up ]]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement