Hello,
I have put a .htaccess like this in a directory :
RewriteEngine On
RewriteCond %{HTTPS} "off"
RewriteRule ^(.*)$ https://%{SERVER_NAME}/test/$1 [R=301,L]
AuthName "xampp user"
AuthType Basic
AuthUserFile "D:\Xampp\xampp\security\xampp.users"
require valid-user
That work well, I have the redirection http -> https, but the window of authentification appears systematically twice. How to have it only once?
If I delete this (
AuthName "xampp user"
AuthType Basic
AuthUserFile "D:\Xampp\xampp\security\xampp.users"
require valid-user
) I haven't authentication.
For information my alias "test" in httpd.conf is :
Alias /test "D:/Xampp/xampp/htdocs/Tests/"
<directory "D:/Xampp/xampp/htdocs/Tests">
Options Indexes MultiViews Includes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</directory>
Thanks in advance,
Laurent