Advertisement
rodro1

htaccess Codigniter Redirect to ssl

Mar 31st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2.  
  3. Options +FollowSymLinks
  4. RewriteEngine on
  5. RewriteBase /
  6.  
  7. # Send request via index.php
  8. RewriteCond %{REQUEST_FILENAME} !-f
  9. RewriteCond %{REQUEST_FILENAME} !-d
  10. RewriteRule ^(.*)$ index.php/$1 [L]
  11.  
  12. RewriteCond %{SERVER_PORT} !^443$
  13. RewriteCond %{HTTPS} off
  14. RewriteRule ^(.*)$ https://ispfraud.info/$1 [R=301,L]
  15.  
  16. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement