Guest User

Untitled

a guest
Jul 22nd, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. # Turn on URL rewriting only when mod rewrite is turn on
  2.  
  3. <IfModule mod_rewrite.c>
  4. RewriteEngine On
  5.  
  6. # Installation directory
  7. RewriteBase /ushahidi
  8.  
  9. # Protect application and system files from being viewed
  10. RewriteRule ^(application|modules|system) - [F,L]
  11.  
  12. # Prevent schedulers from being accessed remotely
  13. #RewriteCond %{REMOTE_ADDR} !^127.0.0.1$
  14. #RewriteRule ^.*/scheduler/.*$ - [F,L]
  15.  
  16. # Allow any files or directories that exist to be displayed directly
  17. RewriteCond %{REQUEST_FILENAME} !-f
  18. RewriteCond %{REQUEST_FILENAME} !-d
  19.  
  20. # Rewrite all other URLs to index.php/URL
  21. RewriteRule .* index.php/$0 [PT,L]
  22. </IfModule>
  23.  
  24. # Protect the htaccess from being viewed
  25. <Files .htaccess>
  26. order allow,deny
  27. deny from all
  28. </Files>
  29.  
  30. # Don't show directory listings for URLs which map to a directory.
  31. Options -Indexes
  32.  
  33. #Follow symlinks
  34. Options +FollowSymlinks
Add Comment
Please, Sign In to add comment