vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=326743

force https with www
by Wolver2
18 Sep 2018 13:00

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 18 Sep 2018 13:48

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 19 Sep 2018 17:01

https://www.vbulletin.org/forum/show...59&postcount=6
:)


All times are GMT. The time now is 00:09.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.