vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   After switching to https Problems wiht "last post-link" (https://vborg.vbsupport.ru/showthread.php?t=327869)

Silmarillion 03-08-2020 12:52 PM

After switching to https Problems wiht "last post-link"
 
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:

PHP Code:

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

Code:

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

Quote:

Originally Posted by Dave (Post 2602284)
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)
Code:

RewriteEngine On
RewriteCond %{HTTPS} !on
RewriteCond %{SERVER_PORT} !^443$
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]


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

Quote:

Originally Posted by Dave (Post 2602288)
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.


All times are GMT. The time now is 08:43 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01022 seconds
  • Memory Usage 1,739KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete