Topic Closed
ibinrd
5 Posts

Hi! Trying to set up the https and find that it's not always redirect to https.

Can somebody tell me how to make it work properly?

9 months ago#11255

juergen
1.4K Posts
51.3K Downloads
16 Plugins
design, web development & visual effects

Assumimg that your webserver is Apache:

Open the file [Your Typesetter installation directory]/.htaccess

If it already contains a <IfModule mod_rewrite.c> block (most likely the case), add the following 2 lines

  RewriteCond %{SERVER_PORT} 80
  RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]

right after

  RewriteEngine On

 

otherwise add this whole block:

<IfModule mod_rewrite.c>

  RewriteEngine On

  RewriteCond %{SERVER_PORT} 80
  RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [L,R=301]

</IfModule>
Edited: 9 months ago#11256

ibinrd
5 Posts

Thanks a lot! I think it would be great to add this solution to documentation.

Or maybe you can add the checkbox in site settings "Always redirect to https".

9 months ago#11265

Topic Closed

 

News

Typesetter 5.1
8/12/2017

Typesetter 5.0.1 is now available for download. 5.1 includes bug fixes, UI/UX improvements, ... Read More

Over 8 Times Faster Than Wordpress
5/3/2016

We've known for a long time that Typesetter is fast. It's something we take pride ... Read More

More News

creisi productions

Dienstleistungen von creisi productions, Luzern (Schweiz): * Konzeption, Planung und Erstellung Ihres Internet-Auftritts * Betreuung und Aktualisierung/Pflege Ihrer Website * ...

Find out more about our Provider Spotlight

Log In

  Register