Connex
(Shark)
1
Hello everyone!
I’m trying to configure so that the the url woulth automatically redirect to https.
I added this in etc/httpd/conf.d/freepbx.conf
<VirtualHost :80>
RewriteEngine on
RewriteCond %{HTTPS} !=on [NC]
RewriteRule ^/admin(.)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
It works but it only redirects the admin panel. It won’t redirect the ucp page.
Is there anything else that I need to add?
Connex
(Shark)
2
Nevermind, it works correctly with this line:
<VirtualHost :80>
Servername my.server.name
ServerAlias www.my.server.name
RewriteEngine on
RewriteRule "^/?(.)" “https://%{HTTP_HOST}/$1” [R=301]
1 Like
system
(system)
Closed
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.