PDA

View Full Version : After switching to https Problems wiht "last post-link"


Silmarillion
03-08-2020, 12:52 PM
Hello everybody,

since i am using https i have the following problem: by clicking the "Go To Last Post" link from the Homepage you are always redirect to the non https-adress of the respective link-adress. If you are doing the same from the threadlist (forumdisplay) everything is ok.

Wheres the problem? Any ideas?

Best regards!

PinkMilk
03-08-2020, 05:44 PM
Change your urls to https in Admincp:

vBulletin Options > Site Name / URL / Contact Details


Forum URL
Homepage URL


Then rebuild styles:
Maintenance > Update Counters > Rebuild Styles

Silmarillion
03-08-2020, 05:56 PM
I have made al lot of template-modifications, PinkMilk. Can that cause any problems?

btw - here is my htaccess:

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain\.de [NC]
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301]

Would'nt it make sense to force all pages here via https? Unfortunately i don't know how to change the file.

Best regards!

snakes1100
03-09-2020, 08:04 AM
Templates shouldnt have hard coded links with http in them.

But you have to change what PinkMilk stated your URL setting.

You also wont need to the rewrite if everything is correct in the url setting & templates arent using hard coded links.

Once you fix the basics, use this format in htaccess

RewriteCond %{HTTP_HOST} ^xxxxx\.com$ [OR]
RewriteCond %{HTTPS} !on
RewriteRule ^(.*)$ https://www.xxxxxxx.com/$1 [R,L]

Silmarillion
03-09-2020, 12:44 PM
Thanks for your Help, PinkMilk and snakes.

I have done/tried your tipps, but that does not resolve the problem.

Every single Link is working fine (https), except the "Go To Last Post" link from the Homepage.

There must be a problem with the link-structure/Condition from the Homepage?

Where is the different to the "Last Post Links" from the Forumdisplay/Threadbit?

Best regards!

Dave
03-09-2020, 12:46 PM
You should create a "Replacement Variable" under AdminCP -> Styles and Templates -> Replacement Variable Manager that rewrites http://yourdomain.com to https://yourdomain.com.

Silmarillion
03-09-2020, 01:36 PM
You should create a "Replacement Variable" under AdminCP -> Styles and Templates -> Replacement Variable Manager that rewrites http://yourdomain.com to https://yourdomain.com.Done! But the problem is still the same. :o

Things i have done:


turn ON "automatic https" (Cloudflare)
turn ON "everwhere https" (Cloudflare)
"rebuild styles"
new RW-Condition/Rule htaccess (found the code at cloudflare)
RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]

Replacement Variable form http://yourdomain.com to https://yourdomain.com.


Crazy! I bet it's a very simple error...

Best regards!

Dave
03-09-2020, 01:56 PM
Did you apply the replacement variable rule to the proper style(s)? That feature has never failed me before.

Silmarillion
03-09-2020, 04:33 PM
Did you apply the replacement variable rule to the proper style(s)? That feature has never failed me before.
Hello Dave,

i have tested it with the Forum-Standardstyle, yes.

Best regards!

Dave
03-09-2020, 05:05 PM
Can you post a link to the forum with the issue here? At this point it's turning into a guessing game.

Silmarillion
03-09-2020, 06:13 PM
I send u PM, Dave. :)

Best regards!

Dave
03-09-2020, 06:51 PM
I had a look and to me the site is actually loaded over HTTPS but there are third party resources such as images and other embedded content that are loaded over HTTP which makes browsers show that the connection is not secure (even though HTTPS is still present in the URL)

You can try this plugin https://vborg.vbsupport.ru/showthread.php?t=288060 which is for vBulletin 4, but it has a comment that explains how to make it work on vBulletin 3 at https://vborg.vbsupport.ru/showthread.php?p=2411587#post2411587

You should also add <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> to the header.

Silmarillion
03-09-2020, 06:52 PM
Ok! Thank you very much, Dave. I'll give it a try.

Best regards!