• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SSL in .htaccess = ERROR 404

#1
I use .htaccess to HTTPS, but i recive error 404. Why?
Here is my code:
Code:
<IfModule mod_rewrite.c>
  RewriteEngine On
  # !IMPORTANT! Set your RewriteBase here and don't forget trailing and leading
  #  slashes.
  # If your page resides at
  #  http://www.example.com/mypage/test1
  # then use
  # RewriteBase /mypage/test1/
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?/$1 [L]

  # ENFORCE SSL
  RewriteCond %{HTTPS} !=on
  RewriteRule ^.*$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>

<IfModule !mod_rewrite.c>

  ErrorDocument 404 /index.php
</IfModule>
Reply


Messages In This Thread
SSL in .htaccess = ERROR 404 - by vertisan - 08-08-2015, 01:18 PM
RE: SSL in .htaccess = ERROR 404 - by CroNiX - 08-09-2015, 09:53 AM
RE: SSL in .htaccess = ERROR 404 - by skunkbad - 08-10-2015, 07:50 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.