Advertisement
Guest User

Untitled

a guest
Feb 6th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. # no indexing
  2. Options -Indexes +FollowSymLinks -MultiViews
  3.  
  4. # hidden files
  5. <Files ~ "common.inc.php">
  6. Order Deny,Allow
  7. Deny from all
  8. </Files>
  9.  
  10. <IfModule mod_rewrite.c>
  11. RewriteEngine On
  12. # Force HTTPS.
  13. # By deleting "#" on the next two rows.
  14. #RewriteCond %{HTTPS} !=on
  15. #RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  16.  
  17. # !IMPORTANT!
  18. # Set your RewriteBase here and don't forget trailing and leading slashes.
  19. # If your page resides at
  20. # http://www.example.com/app/php4dvd
  21. # then use
  22. # RewriteBase /app/php4dvd/
  23. RewriteBase /
  24. RewriteCond %{REQUEST_FILENAME} !-f
  25. RewriteCond %{REQUEST_FILENAME} !-d
  26. RewriteRule ^ index.php [QSA,L]
  27. </IfModule>
  28.  
  29. <IfModule !mod_rewrite.c>
  30. ErrorDocument 404 /index.php
  31. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement