Advertisement
zigojacko

rtght

Nov 25th, 2014
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.59 KB | None | 0 0
  1. DirectoryIndex index.php
  2. <IfModule mod_php5.c>
  3.     php_value max_execution_time 18000
  4.     php_flag magic_quotes_gpc off
  5.     php_flag session.auto_start off
  6.     php_flag zlib.output_compression on
  7.     php_flag suhosin.session.cryptua off
  8.     php_flag zend.ze1_compatibility_mode Off
  9. </IfModule>
  10. <IfModule mod_security.c>
  11.     SecFilterEngine Off
  12.     SecFilterScanPOST Off
  13. </IfModule>
  14. <IfModule mod_deflate.c>
  15.     SetOutputFilter DEFLATE
  16.     AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript
  17.     BrowserMatch ^Mozilla/4 gzip-only-text/html
  18.     BrowserMatch ^Mozilla/4\.0[678] no-gzip
  19.     BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
  20.     SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary
  21.     Header append Vary User-Agent env=!dont-vary
  22. </IfModule>
  23. <IfModule mod_ssl.c>
  24.     SSLOptions StdEnvVars
  25. </IfModule>
  26.  
  27. <IfModule mod_rewrite.c>
  28.     Options +FollowSymLinks
  29.  
  30.     RewriteEngine On
  31.  
  32.     # Redirect from non-www to www
  33.     RewriteCond %{HTTP_HOST} ^readyteddygo.co.uk$ [NC]
  34.     RewriteRule ^(.*)$ http://www.readyteddygo.co.uk/$1 [R=301,L]
  35.  
  36.     RewriteBase /
  37.     RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  38.     RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
  39.     RewriteCond %{REQUEST_FILENAME} !-f
  40.     RewriteCond %{REQUEST_FILENAME} !-d
  41.     RewriteCond %{REQUEST_FILENAME} !-l
  42.     RewriteRule .* index.php [L]
  43. </IfModule>
  44.     AddDefaultCharset Off
  45. <IfModule mod_expires.c>
  46.     ExpiresDefault "access plus 1 year"
  47. </IfModule>
  48. # Below commented out as it breaks the country IP block for India
  49. #    Order allow,deny
  50. #    Allow from all
  51.  
  52. #RedirectMatch 301 /gallery/p http://www.readyteddygo.co.uk/404/
  53.  
  54. <IfModule mod_expires.c>
  55. ExpiresActive On
  56. ExpiresByType image/jpg "access 1 year"
  57. ExpiresByType image/jpeg "access 1 year"
  58. ExpiresByType image/gif "access 1 year"
  59. ExpiresByType image/png "access 1 year"
  60. ExpiresByType text/css "access 1 month"
  61. ExpiresByType application/pdf "access 1 month"
  62. ExpiresByType text/x-javascript "access 1 month"
  63. ExpiresByType application/x-shockwave-flash "access 1 month"
  64. ExpiresByType image/x-icon "access 1 year"
  65. ExpiresDefault "access 2 days"
  66. </IfModule>
  67.  
  68.  
  69.  
  70.  
  71. Options +FollowSymLinks
  72. RewriteCond %{THE_REQUEST} ^.*/index.php
  73. RewriteRule ^(.*)index.php$ http://www.readyteddygo.co.uk/$1 [R=301,L]
  74.  
  75. Options +FollowSymLinks
  76. RewriteCond %{THE_REQUEST} ^.*/home
  77. RewriteRule ^(.*)index.php$ http://www.readyteddygo.co.uk/$1 [R=301,L]
  78.  
  79. Options +FollowSymLinks
  80. RewriteCond %{THE_REQUEST} ^.*/gallery/gallery.html
  81. RewriteRule ^(.*)index.php$ http://www.readyteddygo.co.uk/gallery/$1 [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement