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

RewriteCond %{HTTPS} off

RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteCond %{HTTP_HOST} !^www\. [NC]

RewriteRule (.*) https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

</IfModule>

i am using these codes. BUt it only works for the home page. But it doesn't work for the other pages. for eg.

if i go for http://mysite.com/1 , then it doesn't redirect me to https://www.mysite.com/1

how can i solve this problem?
Q2A version: 1.8.6

1 Answer

0 votes
by
You need to set the url in the settings section of the panel as https://www
...