Guest User

i-gorod

a guest
Apr 13th, 2011
1,765
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.18 KB | None | 0 0
  1. Options -Indexes
  2.  
  3. RewriteEngine On
  4.  
  5. RewriteCond %{HTTP_HOST} ^i-gorod.com
  6. RewriteRule (.*) http://www.i-gorod.com/$1 [R=301,L]
  7.  
  8. RewriteCond %{REQUEST_FILENAME} -f
  9. RewriteRule ^(sys\-temp|cache|xmldb|static|packages)\/.*$ /500/ [L]
  10.  
  11. RewriteCond %{REQUEST_FILENAME} !-f
  12. RewriteRule ^robots\.txt$ /sbots.php?path=$1%{QUERY_STRING} [L]
  13.  
  14. RewriteRule ^config\.ini$ / [L,R]
  15.  
  16. RewriteCond %{REQUEST_URI} !forum
  17. RewriteCond %{REQUEST_URI} !polls
  18. RewriteCond %{REQUEST_URI} !phpmyadmin
  19. RewriteCond %{REQUEST_URI} !^styles
  20. RewriteCond %{REQUEST_URI} !^css
  21. RewriteCond %{REQUEST_URI} !\.css
  22. RewriteCond %{REQUEST_URI} !^js
  23. RewriteCond %{REQUEST_URI} !\.js
  24. RewriteCond %{REQUEST_URI} !^images
  25. RewriteCond %{REQUEST_URI} !^webstat
  26. RewriteCond %{REQUEST_FILENAME} !-f
  27.  
  28. RewriteRule ^(.*)\.xml$ index.php?xmlMode=force&path=$1&%{QUERY_STRING} [L]
  29.  
  30. RewriteRule ^(udata|upage|uobject|ufs|usel|ulang|utype|umess|uhttp):?(\/\/)?(.*)$ releaseStreams.php?scheme=$1&path=$3?%{QUERY_STRING} [L]
  31.  
  32.  
  33. RewriteCond %{REQUEST_URI} !^styles
  34. RewriteCond %{REQUEST_URI} !^css
  35. RewriteCond %{REQUEST_URI} !\.css
  36. RewriteCond %{REQUEST_URI} !^js
  37. RewriteCond %{REQUEST_URI} !\.js
  38. RewriteCond %{REQUEST_URI} !^images
  39.  
  40. RewriteCond %{REQUEST_URI} !(\.ico|\.ICO)$
  41. RewriteCond %{REQUEST_URI} !(\.jpg|\.JPG)$
  42. RewriteCond %{REQUEST_URI} !(\.jpeg|\.JPEG)$
  43. RewriteCond %{REQUEST_URI} !(\.png|\.PNG)$
  44. RewriteCond %{REQUEST_URI} !(\.gif|\.GIF)$
  45. RewriteCond %{REQUEST_URI} !(\.css|\.CSS)$
  46. RewriteCond %{REQUEST_URI} !(\.js|\.JS)$
  47.  
  48. RewriteCond %{REQUEST_FILENAME} !-f
  49.  
  50. RewriteRule ^(.*)$ index.php?path=$1&%{QUERY_STRING} [L]
  51.  
  52.  
  53. RewriteCond %{REQUEST_URI} (\.ico|\.ICO)$
  54. RewriteCond %{REQUEST_URI} (\.jpg|\.JPG)$
  55. RewriteCond %{REQUEST_URI} (\.jpeg|\.JPEG)$
  56. RewriteCond %{REQUEST_URI} (\.png|\.PNG)$
  57. RewriteCond %{REQUEST_URI} (\.gif|\.GIF)$
  58. RewriteCond %{REQUEST_URI} (\.css|\.CSS)$
  59. RewriteCond %{REQUEST_URI} (\.js|\.JS)$
  60.  
  61. RewriteCond %{REQUEST_FILENAME} !-f
  62.  
  63. RewriteRule ^(.*)$ [R=404]
  64.  
  65.  
  66. <IfModule mod_mime.c>
  67. AddType application/x-java-applet .class
  68. AddType text/x-component .htc
  69. </IfModule>
  70.  
  71. <IfModule mod_security.Я>
  72. SecFilterScanPOST Off
  73. </IfModule>
  74.  
  75. <Files "whatsnew.txt">
  76. Deny from all
  77. </Files>
Advertisement
Add Comment
Please, Sign In to add comment