Advertisement
QkiZ

Untitled

Aug 19th, 2013
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.14 KB | None | 0 0
  1. RewriteEngine On
  2. RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
  3. RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
  4. RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
  5. RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
  6. RewriteRule .* index.php [F]
  7.  
  8. RewriteBase /
  9. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  10. RewriteCond %{REQUEST_URI} !^/index\.php
  11. RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
  12. RewriteCond %{REQUEST_FILENAME} !-f
  13. RewriteCond %{REQUEST_FILENAME} !-d
  14. RewriteRule .* index.php [L]
  15. ^^ these rules are from standard Joomla install
  16.  
  17. RewriteCond %{HTTP_HOST} ^www\.sub\.domain\.com$ [NC]
  18. RewriteRule ^(.*)$ http://sub.domain.com/$1 [R=301,L]
  19.  
  20. <Files sitemap.xml>
  21. order allow,deny
  22. allow from all
  23. </Files>
  24.  
  25. AddOutputFilterByType DEFLATE text/css
  26. AddOutputFilterByType DEFLATE application/javascript
  27. AddOutputFilterByType DEFLATE application/x-javascript
  28. AddOutputFilterByType DEFLATE text/html
  29.  
  30. <filesMatch ".(jpg|jpeg|png|gif|css|js)$">
  31. Header set Cache-Control "max-age=604800, public"
  32. </FilesMatch>
  33. ^^ these my other rules
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement