Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.

Redirecting HTTP to HTTPS correctly

+3 votes
763 views
asked Dec 30, 2014 in Q2A Core by anonymous

Hello

I have searched in different places but I can't find a solution to the problem. 

In the Q2A dashboard I have set the URL structure as follow : 

/123/why-do-birds-sing (requires htaccess file)

and the .htaccess file is as follow: 

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
RewriteCond %{HTTP:CF-Visitor} '"scheme":"http"'
RewriteRule ^(.*)$ https://MYDOMAIN.com/$1 [L,R=301]
</IfModule>
this will do a 301 redirect from HTTP to HTTPS. However, if the user enters an address like this : 
www.Mydomain.com/users 
They are redirected to : https://Mydomain.com/index.php?qa-rewrite=users which returns a 404 error page
 
I have been trying to resolve this issue for several days now and I can't 
thanks in advanced
Q2A version: 1.6.3

Please log in or register to answer this question.

...