ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Remove index.php when using SSL/HTTPS

March 06, 2013 5:27pm

Subscribe [1]
  • #1 / Mar 06, 2013 5:27pm

    sbeyatte

    18 posts

    Hi there, I realize there are already 10000 topics about this but I’ve found nothing that works.

    I just installed an SSL certificate on an EC2 instance and now:
    http://www.domain.com works,
    https://www.domain.com works,
    http://www.domain.com/login works
    but….
    https://www.domain.com/login gives me a 404 file not found but if I go to
    https://www.domain.com/index.php/login everything is fine.

    So all I’m looking to do is remove index.php from my HTTPS urls. I’m using the typical .htaccess at the moment:

    <IfModule mod_rewrite.c>
            RewriteEngine On
    
            # Removes index.php
            RewriteCond $1 !\.(gif|jpe?g|png|ico)$ [NC]
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteCond %{REQUEST_FILENAME} !-d
            RewriteRule ^(.*)$ /index.php?/$1 [L]
    
            # If 404s, "No Input File" or every URL returns the same thing
            # make it /index.php?/$1 above (add the question mark)
    </IfModule>

    Any help on this?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases