Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. AuthName "Restricted Area"
  2. AuthType Basic
  3. AuthUserFile /home/mysite/.htpasswd
  4. AuthGroupFile /dev/null
  5. require valid-user
  6.  
  7. AddDefaultCharset utf-8
  8.  
  9. Options +FollowSymLinks
  10. IndexIgnore */*
  11. RewriteEngine on
  12.  
  13. # if a directory or a file exists, use it directly
  14. RewriteCond %{REQUEST_FILENAME} !-f
  15. RewriteCond %{REQUEST_FILENAME} !-d
  16.  
  17. # otherwise forward it to index.php
  18. RewriteRule . index.php
  19.  
  20. php_value post_max_size 10M
  21. php_value upload_max_filesize 10M
  22. php_value max_execution_time 200
  23. php_value max_input_time 200
  24.  
  25. AddDefaultCharset utf-8
  26.  
  27. Options +FollowSymLinks
  28. IndexIgnore */*
  29. RewriteEngine on
  30.  
  31. # if a directory or a file exists, use it directly
  32. RewriteCond %{REQUEST_FILENAME} !-f
  33. RewriteCond %{REQUEST_FILENAME} !-d
  34.  
  35. # otherwise forward it to index.php
  36. RewriteRule . index.php
  37.  
  38. php_value post_max_size 10M
  39. php_value upload_max_filesize 10M
  40. php_value max_execution_time 200
  41. php_value max_input_time 200
  42.  
  43. ### force www
  44. RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
  45. RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
  46. RewriteBase /
  47.  
  48. deny from all
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement