PDA

View Full Version : force https with www


Wolver2
09-18-2018, 11:00 AM
I set my vbulletin to https://www.domain.com via cloudflare.
In the forum url settings I also set the same.

Sadly my old members bookmarked the forum as http://domain.com
it forwards them to https://domain.com instead of https://www.domains.com

and multiple mods are not working....

how can i make forward everyone to https and www.?

maybe via .htaccess

In Omnibus
09-18-2018, 11:48 AM
Add the following: (Do not duplicate the RewriteEngine On - If it's there once that's good enough)

RewriteEngine On
# This will enable the Rewrite capabilities

RewriteCond %{SERVER_PORT} 80
# This checks to make sure the connection is not already HTTPS – port 80 indicates a non-secured HTTP conection.

RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
# This rule will redirect users from their original location to the same location but using HTTPS.
# Example: Visitors trying to access http://www.domain.com/somesubsection/ will be redirected to https://www.domain.com/somesubsection/

Stratis
09-19-2018, 03:01 PM
https://vborg.vbsupport.ru/showpost.php?p=2586359&postcount=6
:)