Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine On
- RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
- RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
- RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
- RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
- RewriteRule .* index.php [F]
- RewriteBase /
- RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
- RewriteCond %{REQUEST_URI} !^/index\.php
- RewriteCond %{REQUEST_URI} /component/|(/[^.]*|\.(php|html?|feed|pdf|vcf|raw))$ [NC]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule .* index.php [L]
- ^^ these rules are from standard Joomla install
- RewriteCond %{HTTP_HOST} ^www\.sub\.domain\.com$ [NC]
- RewriteRule ^(.*)$ http://sub.domain.com/$1 [R=301,L]
- <Files sitemap.xml>
- order allow,deny
- allow from all
- </Files>
- AddOutputFilterByType DEFLATE text/css
- AddOutputFilterByType DEFLATE application/javascript
- AddOutputFilterByType DEFLATE application/x-javascript
- AddOutputFilterByType DEFLATE text/html
- <filesMatch ".(jpg|jpeg|png|gif|css|js)$">
- Header set Cache-Control "max-age=604800, public"
- </FilesMatch>
- ^^ these my other rules
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement