Results 1 to 5 of 5

Base Tag Missing in HTTPS forum

This is a discussion on Base Tag Missing in HTTPS forum within the Bug Reporting forums, part of the vBSEO SEO Plugin category; I recently added an SSL cert to my forum and changed all the URLs to include the https:// protocol. However, ...

  1. #1
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times

    Base Tag Missing in HTTPS forum

    I recently added an SSL cert to my forum and changed all the URLs to include the https:// protocol. However, since making this change, vBSEO keeps removing the base tags in my pages, so no relative links or images resolve properly:

    I fixed the problem after removing the following from vbseo/vbseo_functions_vb.php:
    Code:
    if(defined('VBSEO_PREPROCESSED') || vbseo_is_https())
    $headinclude = preg_replace('#<base href[^>]*?>(\s*?<!--\[if IE\]><\/base><!\[endif\]-->)?#is', '', $headinclude);
    Note the vbseo_is_https() call is what causes the issue, because the base tag is removed and never put back... I assume that vBSEO no longer adds the base tag in vBulletin 4 since it is always present in stock vB4 now, but this line was never updated to be consistent with the change.
    - the makers of VaultWiki

  2. #2
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    Did you update the vboptions -> site url to the https version? that's where vbseo gets its base url from.

  3. #3
    Member
    Real Name
    Ted
    Join Date
    Aug 2008
    Location
    New York, NY
    Posts
    54
    Liked
    0 times
    Yes I did. All of our settings use https. Like I said above, the problem is that it removes the tag from the output on that line for some reason, and never re-adds it. After this the browser doesn't get the tag at all.
    - the makers of VaultWiki

  4. #4
    vBSEO Staff Brian Cummiskey's Avatar
    Real Name
    Brian Cummiskey
    Join Date
    Jul 2009
    Location
    btwn NYC and Boston
    Posts
    12,789
    Liked
    657 times
    Blog Entries
    2
    I flagged this for a developer to review.

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    168 times
    Hello,

    you can replace that line with:
    PHP Code:
    if(defined('VBSEO_PREPROCESSED') || (vbseo_is_https() && !strstr($GLOBALS['vbulletin']->options['bburl'], 'https:'))) 

Similar Threads

  1. rewriting my URLs, removing the forum base
    By Cor van Noorloos in forum URL Rewrite Settings
    Replies: 0
    Last Post: 06-15-2009, 02:46 PM
  2. Add www if missing and change http:// to https://
    By Cromulent in forum URL Rewrite Settings
    Replies: 6
    Last Post: 01-09-2009, 04:14 PM
  3. Href base doesn't switch http/https
    By belak in forum Bug Reporting
    Replies: 9
    Last Post: 03-19-2007, 06:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •