Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 05-24-2015, 12:57 AM
mykkal's Avatar
mykkal mykkal is offline
 
Join Date: May 2007
Location: Atlanta, GA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Vbulletin Sitemap Actually Conflicts With Canonical Urls Preventing Proper Indexing

Is there a way to fix the vbulletin sitemap so that it returns the value of the Canonical Url? There is a thread on vBulletin.com which talks about vBulletin's SEO. It's actually against the grain as far as google webmaster tools is concerned.

For those that use htaccess to rewrite anything other than the default URL listings Vbulletin will make a sitemap contrary to the canonical URL resulting in a looping override of the canonical URL. The sitemap will say "these urls exist" and Google sees them as a preference. It will then send a robot to verify the page exist resulting in exposure to the canonical url. this cause google to drop references to the canonical URL as soon as the next sitemap is submitted. That is nightly for me.

The problem lies in /includes/class_sitemap.php.

Here is a word from Google expressingly stating not to do what vB functionality currently does:
https://support.google.com/webmaster...r/139066?hl=en

Quote:
While we encourage you to use any of these methods, none of them are required. If you don't indicate a canonical URL, we'll identify what we think is the best version or URL.
Don't use the robots.txt file for canonicalization purposes.
Don't use the URL removal tool for canonicalization: it removes all versions of a URL from search.
Don't specify different URLs as canonical for the same page (e.g. one URL in a sitemap and a different URL for that same page using rel="canonical")
--------------- Added [DATE]1432502849[/DATE] at [TIME]1432502849[/TIME] ---------------

FYI i'm asking if there is a preexisting canonical reference other than using 'bburl'? I'm trying to edit code on line 797 of includes/class_sitemap.php to get vbulletin to pull the url rewrites we use as the url for the sitemap to write. We've got tens of thousands of linkbacks preexisting from the site being 7 years old. The rewrites we used were custom and vbulletin doesn't have an option that displays them that way. The canonical urls are already rewritten to reflect what our url rewrites in htacess are. If I can get this to work then we will not have anymore problems with Google Webmaster tools.

If you know of w way please let me know:

Code:
$content .= "\n\t" . '<loc>' . htmlspecialchars_uni($this->registry->options['bburl'] . '/xmlsitemap.php?fn=' . urlencode($sitemap['loc'])) . '</loc>';
Reply With Quote
  #2  
Old 05-25-2015, 08:07 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So are you saying that, when generating the sitemap, you'd like to do the reverse of what your htaccess rewrite rules do? I don't know how to do that, but I was wondering if I understood correctly.
Reply With Quote
  #3  
Old 05-25-2015, 09:36 PM
mykkal's Avatar
mykkal mykkal is offline
 
Join Date: May 2007
Location: Atlanta, GA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by kh99 View Post
So are you saying that, when generating the sitemap, you'd like to do the reverse of what your htaccess rewrite rules do? I don't know how to do that, but I was wondering if I understood correctly.
Hey there, this is an issue unique to those that use a custom url structure. I fixed it by getting a custom made sitemap. Basically this was a problem that .htaccess couldn't fix. The vbulletin sitemap was creating links in a http://Yoursite.com/showthread.php?t-122232 format. Google looks at any sitemap as a prefered format. It also looks at a "rel=canonical" tag as a prefered format. Like say... Google begins to index in one format, visits the page and begins to index in another format. Then when the sitemap is checked again the cycle starts all over.

Basically the two canceled each other out. Now that the sitemap matches the Canonical tag things will index much quicker.

Plus this sitemap pings google anyways so I don't have to wait weeks for indexing. New posts are showing up in the index within an hour or so.
Reply With Quote
Благодарность от:
Lynne
  #4  
Old 05-25-2015, 11:07 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can you share your work?
Reply With Quote
  #5  
Old 05-25-2015, 11:28 PM
mykkal's Avatar
mykkal mykkal is offline
 
Join Date: May 2007
Location: Atlanta, GA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by RichieBoy67 View Post
Can you share your work?
I'll private message you. Last time i tried to do that some were offended.
Reply With Quote
Благодарность от:
RichieBoy67
  #6  
Old 05-26-2015, 03:55 PM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
way to fix vbulletin sitemap so that it returns the value of the Canonical Url
not doable in sitemaps FYI..
Reply With Quote
  #7  
Old 05-26-2015, 04:13 PM
mykkal's Avatar
mykkal mykkal is offline
 
Join Date: May 2007
Location: Atlanta, GA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SaN-DeeP View Post
not doable in sitemaps FYI..
its been done. just can't do it in vBulletin's native sitemap.
Reply With Quote
  #8  
Old 05-26-2015, 05:01 PM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by mykkal View Post
its been done. just can't do it in vBulletin's native sitemap.
Hello mykkal,
This is great to understand.. Sorry but.
I just did not read your first post completely, just few lines and answered.
Can you post a working solution to rest of community ?
Reply With Quote
  #9  
Old 05-26-2015, 05:34 PM
mykkal's Avatar
mykkal mykkal is offline
 
Join Date: May 2007
Location: Atlanta, GA
Posts: 485
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by SaN-DeeP View Post
Hello mykkal,
This is great to understand.. Sorry but.
I just did not read your first post completely, just few lines and answered.
Can you post a working solution to rest of community ?
I cannot. I fixed the issue by fixing the VBSEO sitemap code to work with 4.2.3. Everytime I've tried to share the fixes we've implemented over the last weeks I've been harassed by members or shunned by moderators.

I was going to PM the changes to a member but I changed my mind after the headache of last week.

I can, however post to you my sitemap links so you can see that custom htaccess redirects & sitemaps do work. Then you can endeavor to fix it for yourself. I want to share but I've decided the headache of last week isn't worth it.

to make the sitemap work fix your purchased version of vBSEO first...then fix the sitemap. It will render urls in whatever format your htaccess rewrite rules reflect.
Reply With Quote
  #10  
Old 05-26-2015, 06:04 PM
SaN-DeeP's Avatar
SaN-DeeP SaN-DeeP is offline
 
Join Date: Jun 2002
Location: Mumbai, India
Posts: 1,195
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks mykkal for your immediate reply.. Appreciated...

I will strictly suggest you to remove those above links (for your own site privacy/seuecirty first).
2nd vbseo should not allow me to download those files (check your rules)..
3rd do not share those links in public (like these places).. I have a note of those URIs.. will try to spend some time with same.. as we are already in process of removing vbseo from all our domain/site (s).
Reply With Quote
Reply


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 02:43 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04981 seconds
  • Memory Usage 2,274KB
  • Queries Executed 13 (?)
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
  • (1)bbcode_code
  • (7)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
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (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_postinfo_query
  • fetch_postinfo
  • 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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete