Advertisement
Guest User

Untitled

a guest
Apr 26th, 2015
208
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. RewriteEngine On
  2. RewriteCond %{SERVER_PORT} 80
  3. RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
  4.  
  5. Options +FollowSymLinks
  6. IndexIgnore */*
  7. RewriteEngine On
  8.  
  9.  
  10. #Admin
  11. Rewriterule ^admin$ index.php?r=Cms/admin/home
  12. #Install
  13. Rewriterule ^install$ install.php?r=Install/default
  14.  
  15. # if a directory or a file exists, use it directly
  16. RewriteCond %{REQUEST_FILENAME} !-f
  17. RewriteCond %{REQUEST_FILENAME} !-d
  18. RewriteCond %{REQUEST_URI} !.(js|ico|gif|jpg|png|css)$
  19.  
  20. # otherwise forward it to index.php
  21. RewriteRule . index.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement