Guest User

Untitled

a guest
Dec 11th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. Options -Indexes
  2. ErrorDocument 404 /404.php
  3.  
  4.  
  5. <IfModule mod_php5.c>
  6. php_flag allow_call_time_pass_reference 1
  7. php_flag session.use_trans_sid off
  8.  
  9. #php_value display_errors 1
  10.  
  11. #php_value mbstring.func_overload 2
  12. #php_value mbstring.internal_encoding UTF-8
  13. </IfModule>
  14.  
  15. <IfModule mod_rewrite.c>
  16. Options +FollowSymLinks
  17. RewriteEngine On
  18.  
  19. RewriteCond %{REQUEST_FILENAME} !-f
  20. RewriteCond %{REQUEST_URI} !..+$
  21. RewriteCond %{REQUEST_URI} !/$
  22. RewriteRule (.*) http://ludacha.ru/$1/ [R=301,L]
  23.  
  24. RewriteCond %{HTTP_HOST} ^www.ludacha.ru [NC]
  25. RewriteRule ^(.*)$ http://ludacha.ru/$1 [L,R=301]
  26.  
  27. RewriteCond %{THE_REQUEST} ^[A-Z]{3,9} (.*)/index.php HTTP/
  28. RewriteRule ^(.*)index.php$ http://ludacha.ru/$1 [L,R=301]
  29.  
  30. RewriteCond %{REQUEST_FILENAME} !-f
  31. RewriteCond %{REQUEST_FILENAME} !-l
  32. RewriteCond %{REQUEST_FILENAME} !-d
  33. RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
  34. RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
  35. RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
  36. </IfModule>
  37.  
  38. <IfModule mod_dir.c>
  39. DirectoryIndex index.php index.html
  40. </IfModule>
  41.  
  42. <IfModule mod_expires.c>
  43. ExpiresActive on
  44. ExpiresByType image/jpeg "access plus 3 day"
  45. ExpiresByType image/gif "access plus 3 day"
  46. ExpiresByType image/png "access plus 3 day"
  47. ExpiresByType text/css "access plus 3 day"
  48. ExpiresByType application/javascript "access plus 3 day"
  49. </IfModule>
Add Comment
Please, Sign In to add comment