Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+3 votes
in Q2A Core by


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]
this will do a 301 redirect from HTTP to HTTPS. However, if the user enters an address like this : 
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.