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

Reply
 
Thread Tools Display Modes
  #1  
Old 04-11-2016, 01:31 PM
CnfsdWhtGuy CnfsdWhtGuy is offline
 
Join Date: Jan 2016
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Swtiched from VB5 to VB4. Now I have 90k not found 404 errors

Just like the title says. I upgraded to VB5 as I was receiving email on the version I had that it had security flaws. I had already paid for the upgrade to 5 so I figured why not. Made the change and had performance issues, template complaints from users, and really a limited number of skins to choose from. Tried to make it work for about a month but I got nothing but negative feedback and a kept running into issues trying to get the site up to bar. I decided to drop back into VB4 again.

When I made the switch to 5 it updated all of our links to SEO friendly ones. When I switched back so did the links. Since then the number of not found 404 errors on google webmaster have sky rocketed. I contacted the support forum on Google webmaster and he recommended creating 301 redirects. He said there was a way to "script" it and save myself time. When investigating further he said it would be best to contact someone at Vbulletin. So here I am.

The site is www.killbillet.com. It is PHP based. It is currently on Version 4.2.3.

This is definitely outside of my expertise so I will likely have a few questions but I learn quickly. Thanks in advance and let me know if you need any more information.
Reply With Quote
  #2  
Old 04-11-2016, 06:28 PM
final kaoss final kaoss is offline
 
Join Date: Apr 2006
Posts: 1,314
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Most likely Google will have to recrawl and reindex the site. In the meantime, create a sitemap and submit it to google via the webmaster tools.
Reply With Quote
  #3  
Old 04-12-2016, 01:11 PM
CnfsdWhtGuy CnfsdWhtGuy is offline
 
Join Date: Jan 2016
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by final kaoss View Post
Most likely Google will have to recrawl and reindex the site. In the meantime, create a sitemap and submit it to google via the webmaster tools.
This was submitted about two weeks ago. Since the errors have just increased daily.

--------------- Added [DATE]1460474536[/DATE] at [TIME]1460474536[/TIME] ---------------

Lets start with this. A bunch of member profile pages are showing up as an error because the user page is listed as http://www.killbillet.com/member/62412-Cytel.

The actual user page link is below.

http://www.killbillet.com/member.php?62412-Cytel

How would I make this 301 redirect in bulk to remove this error?

Thanks for any input you can provide.
Reply With Quote
  #4  
Old 04-12-2016, 02:06 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You could use the following rewrite rule for a 301 redirect for the URL's you posted:

HTML Code:
RewriteEngine On
RewriteRule ^member/([0-9]+)-(.*)$ member.php?$1-$2 [R=301,L]
Reply With Quote
  #5  
Old 04-12-2016, 02:38 PM
CnfsdWhtGuy CnfsdWhtGuy is offline
 
Join Date: Jan 2016
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dave,

I have a very limited understanding so I am sorry if I am asking stupid questions but would this coding apply to all member accounts then? And would this need to be uploaded to the member.php section of our site?

Thanks in advance.
Reply With Quote
  #6  
Old 04-12-2016, 02:51 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It would apply to all the URL's which are constructed as the one in your previous post.
That piece of "code" is supposed to go in a .htaccess file in the root folder of your forum.

In case you don't know how to edit that file:
https://support.hostgator.com/articl...-htaccess-file
http://www.genesisclub.training/7532...ow-to-edit-it/
Reply With Quote
  #7  
Old 04-12-2016, 03:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dave provided the .htaccess for your members pages, but unfortunately you will not be able to do any rewrites for forums or threads unless you type each one our specifically.
Reply With Quote
  #8  
Old 04-12-2016, 05:00 PM
CnfsdWhtGuy CnfsdWhtGuy is offline
 
Join Date: Jan 2016
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok so I drop this in the .htaccess file and any member page that is listed like the one above will have a 301 redirect and in theory should stop showing up as an error on google webmaster correct?

Lynne, So what you are saying is that this will only apply to members pages but every other section won't be fixed correct? so if I take the code above and apply it to the various sections (i.e. forumdisplay.php and showthread.php) it should do the same for those if they are formatted similarly correct? Can you have multiple rules like this in the htaccess file?

By the way this is super helpful. I have been dealing with this for a while and felt like I was getting nowhere. You guys are awesome.
Reply With Quote
  #9  
Old 04-12-2016, 05:28 PM
Dave Dave is offline
 
Join Date: May 2010
Posts: 2,583
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by CnfsdWhtGuy View Post
Ok so I drop this in the .htaccess file and any member page that is listed like the one above will have a 301 redirect and in theory should stop showing up as an error on google webmaster correct?

Lynne, So what you are saying is that this will only apply to members pages but every other section won't be fixed correct? so if I take the code above and apply it to the various sections (i.e. forumdisplay.php and showthread.php) it should do the same for those if they are formatted similarly correct? Can you have multiple rules like this in the htaccess file?

By the way this is super helpful. I have been dealing with this for a while and felt like I was getting nowhere. You guys are awesome.
Correct.

The other old SEO URL's may have a different structure which vBulletin may not support.
For example if the old SEO URL's only contain titles/names and no numbers (which are used to identify the section in vBulletin), there's no way for vBulletin to know what section is supposed to be displayed.
Reply With Quote
  #10  
Old 04-12-2016, 07:03 PM
Paul M's Avatar
Paul M Paul M is offline
 
Join Date: Sep 2004
Location: Nottingham, UK
Posts: 23,748
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

There are no known security flaws in 4.2.3, so who exactly sent you this email?
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 07:47 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.04474 seconds
  • Memory Usage 2,257KB
  • 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
  • (1)bbcode_html
  • (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
  • (2)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