Quantcast
Channel: FreePBX - FreePBX Community Forums
Viewing all articles
Browse latest Browse all 17433

Redirect to HTTPS

$
0
0

@Connex wrote:

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?

Posts: 2

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17433

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>