Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions

Reply
 
Thread Tools Display Modes
  #1  
Old 03-08-2020, 12:52 PM
Silmarillion's Avatar
Silmarillion Silmarillion is offline
 
Join Date: Jul 2004
Location: Germany/Bavaria
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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!
Reply With Quote
  #2  
Old 03-08-2020, 05:44 PM
PinkMilk PinkMilk is offline
 
Join Date: May 2010
Location: Earth
Posts: 193
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #3  
Old 03-08-2020, 05:56 PM
Silmarillion's Avatar
Silmarillion Silmarillion is offline
 
Join Date: Jul 2004
Location: Germany/Bavaria
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #4  
Old 03-09-2020, 08:04 AM
snakes1100 snakes1100 is offline
 
Join Date: Dec 2001
Location: Michigan
Posts: 3,733
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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]
Reply With Quote
  #5  
Old 03-09-2020, 12:44 PM
Silmarillion's Avatar
Silmarillion Silmarillion is offline
 
Join Date: Jul 2004
Location: Germany/Bavaria
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #6  
Old 03-09-2020, 12:46 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You should create a "Replacement Variable" under AdminCP -> Styles and Templates -> Replacement Variable Manager that rewrites http://yourdomain.com to https://yourdomain.com.
Reply With Quote
  #7  
Old 03-09-2020, 01:36 PM
Silmarillion's Avatar
Silmarillion Silmarillion is offline
 
Join Date: Jul 2004
Location: Germany/Bavaria
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
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.

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!
Reply With Quote
  #8  
Old 03-09-2020, 01:56 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Did you apply the replacement variable rule to the proper style(s)? That feature has never failed me before.
Reply With Quote
  #9  
Old 03-09-2020, 04:33 PM
Silmarillion's Avatar
Silmarillion Silmarillion is offline
 
Join Date: Jul 2004
Location: Germany/Bavaria
Posts: 58
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dave View Post
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!
Reply With Quote
  #10  
Old 03-09-2020, 05:05 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you post a link to the forum with the issue here? At this point it's turning into a guessing game.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 08:24 PM.


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.04187 seconds
  • Memory Usage 2,249KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_code
  • (1)bbcode_php
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete