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
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.
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,
Hi,
Just replace your config (into IfModule) with what they propose.