Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Force https connect...
 
Notifications
Clear all

Force https connection / Forcer la connexion https

4 Posts
2 Users
0 Reactions
2,117 Views
(@kbp)
Posts: 8
Active Member
Topic starter
 
[#7061]

English version :
Hello, I cannot force the connection to my platform in https.
However, I modified the .htaccess file
Can you help me?
cordially

Current version: V8.6.6
Browser: Google Chrome

Version originale :
Bonjour, je n'arrive pas à faire forcer la connexion à ma plateforme en https.
Pourtant j'ai modifié le ficher .htaccess
Pouvez-vous m'aider?
Cordialement

Version actuelle: V8.6.6
Navigateur: Google Chrome


 
Posted : 22 Nov 2020 18H17
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Possibly your apache does not allow to take .htAccess in account

Best is to set a virtualhost.
Here is an exemple

    ServerName projeqtor.yourserver.com
    DocumentRoot /var/www/projeqtor
	RewriteEngine on
    RewriteCond %{HTTPS} !^on
    RewriteRule ^(.*) https:/projeqtor.yourserver.com$1 [QSA,L,R=301]


   ServerName projeqtor.yourserver.com
   SSLEngine on
   SSLCertificateFile /etc/ssl/projeqtor.cer
   SSLCertificateKeyFile /etc/ssl/projeqtor.key
   SSLCertificateChainFile /etc/ssl/AlphaSSLCA-SHA256-G2.cer
   DocumentRoot /var/www/projeqtor


        AllowOverride all

yourserver.com and SSL files must be adapted to your config.


 
Posted : 22 Nov 2020 21H58
(@kbp)
Posts: 8
Active Member
Topic starter
 

English version :
Thank you for your reply.
But unfortunately, I still cannot schedule the redirect.
The default content of the .htaccess file is:

  RewriteEngine On
   
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?uri=$1



AuthUserFile "./.htpasswd"
AuthName "ProjeQtOr" 
AuthType Basic
require valid-user

I host the platform at OVH, he tells me to do it like this:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$  https://www.mypersonaldomain.ovh/$1  [R,L]

Can you tell me how I should interpret their instructions in relation to your answer?

Regards,

Version originale :
Merci pour votre réponse.
Mais malheureusement, je n'arrive toujours pas à programmer la redirection.
Le contenu par défaut du fichier .htaccess est:

  RewriteEngine On
   
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php?uri=$1



AuthUserFile "./.htpasswd"
AuthName "ProjeQtOr" 
AuthType Basic
require valid-user

J'héberge la plateforme chez OVH, il me dit de faire comme ça:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$  https://www.mypersonaldomain.ovh/$1  [R,L]

Pouvez-vous me dire comment je devrais interpréter leurs instructions par rapport à votre réponse ?

Cordialement,


 
Posted : 23 Nov 2020 21H15
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Just replace your config (into IfModule) with what they propose.


 
Posted : 23 Nov 2020 21H56
Share:

Scroll to Top