vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
vBSEO 3.2.0 Patch Release for vB 3.8 vBSEO Total Support Team Launches DeskPro vBSEO 3.2.0 GOLD Has Landed Success with vBSEO = 600ore Web Visitors + $1400 in a Day! Crawlability Inc. Files for SEO Technology Patent
se sw

vbseo not returning 404s for certain urls

This is a discussion on vbseo not returning 404s for certain urls within the Troubleshooting forums, part of the vBSEO SEO Plugin category; Hi, I have just replaced a SMF forum with Vbulletin. I am not too worried about redirecting all of the ...

Go Back   vBulletin SEO Forums > vBSEO SEO Plugin > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Reply

 

LinkBack Thread Tools
  #1  
Old 02-29-2008, 02:53 PM
Junior Member
 
Real Name: LuckyStrike
Join Date: Feb 2008
Posts: 21
vbseo not returning 404s for certain urls

Hi,

I have just replaced a SMF forum with Vbulletin. I am not too worried about redirecting all of the urls from the old forum to the new vbulletin urls, apart from the main forum boards, which I have redirected using custom redirects.

I would however like to give a 404 status for any old urls that I have not redirected. But it seems that most of the old urls do not return a 404 status code but redirect to the forum homepage.

An example of an old SMF url is: http://forum.mydomain.com/index.php?board=1.0.html

Is there anything I can do to make these urls return a 404?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #2  
Old 02-29-2008, 03:17 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,951
Hello,

do you have "File not found" handler option in vBSEO CP set to "Send 404 code"?
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #3  
Old 02-29-2008, 03:27 PM
Junior Member
 
Real Name: LuckyStrike
Join Date: Feb 2008
Posts: 21
Hi,

No, I have it set to 'include custom script'. and I have set up a custom vb 404 page.

This all works well for certain types of urls... e.g http://forum.mydomain.com/this-is-a-bad-url.html will return a correct 404 status and display my custom 404 page. However the problem exists with the old smf urls that I gave an example of in my 1st post.

Cheers
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #4  
Old 02-29-2008, 03:31 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,951
Ahh, I see - old link points to the existing URL.

You can put this in .htaccess file right after "RewriteEngine on" line:
Code:
RewriteCond %{QUERY_STRING} board=
RewriteRule index\.php custom404.php [L]
where custom404.php is the filename of your custom 404 handler script.
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #5  
Old 02-29-2008, 03:47 PM
Junior Member
 
Real Name: LuckyStrike
Join Date: Feb 2008
Posts: 21
Hi, no that doesn't work I am afraid.

I have followed these instruction to set up the custom 404: Create a Custom vBulletin "404 Page Not Found" Page, and direct vBSEO to use it.

And I added the following code to my htaccess in the root of my forum:

Code:
RewriteCond %{QUERY_STRING} board=
RewriteRule index\.php 404.php [L]
But the old smf urls still don't return a 404 and still just go to the front page of my forum.

Could there possibly be something wrong with the code you gave me?

Thanks for the help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #6  
Old 02-29-2008, 04:15 PM
Junior Member
 
Real Name: LuckyStrike
Join Date: Feb 2008
Posts: 21
I have just tested the url on the vbseo forum and it has the same problem, the bad url redirects to the home page and doesnt return a 404:

http://www.vbseo.com/forums/index.php?board=1.0.html
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #7  
Old 02-29-2008, 06:49 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,951
What is an example URL that doesn't work for you?
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #8  
Old 02-29-2008, 07:12 PM
Junior Member
 
Real Name: LuckyStrike
Join Date: Feb 2008
Posts: 21
Try this url: http://www.vbseo.com/forums/index.php?board=1.0.html

As you can see it does not return a 404. I am having the same problem with my forum. I have a few hundred urls from my old forum in the same format that I need to generate 404s on my new vbseo'd forum.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #9  
Old 02-29-2008, 07:23 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,951
We do not have the mentioned code in .htaccess (since we never had SMF installed and that URLs is not indexed in our case). Since there can be ANY parameters added to ANY URL, it's not possible to handle all of them automatically.
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #10  
Old 02-29-2008, 07:42 PM
Junior Member
 
Real Name: LuckyStrike
Join Date: Feb 2008
Posts: 21
Ok, fair enough. Do you know what code I could put in my htaccess to handle this url format?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #11  
Old 02-29-2008, 07:55 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,951
The code above should work (I just tested it on my local dev instance).
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #12  
Old 03-01-2008, 01:54 PM
Junior Member
 
Real Name: LuckyStrike
Join Date: Feb 2008
Posts: 21
Hi Oleg, this code still doesn't work for me.

Could it be that I have defined homepage aliases for index.php and index.php? in the vbseo control panel? What code can I use if this is the case?

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #13  
Old 03-01-2008, 03:47 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,951
What is your full .htaccess file contents now?
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #14  
Old 03-01-2008, 03:58 PM
Junior Member
 
Real Name: LuckyStrike
Join Date: Feb 2008
Posts: 21
My full htaccess is as follows. Note that my forum is installed in the root of a subdomain i.e http://forum.mydomain.com

Also when posting my htaccess in this post for some reason it would not display the '\' in the 'index\.php'

Code:
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On

# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
RewriteBase /

#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]

RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

RewriteCond %{QUERY_STRING} board=
RewriteRule index\.php 404.php [L]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
  #15  
Old 03-01-2008, 06:40 PM
Oleg Ignatiuk's Avatar
vBSEO Staff
vBSEO Total Customer SupportvBSEO Documenter
 
Real Name: Oleg Ignatiuk
Join Date: Jun 2005
Location: Belarus
Posts: 21,951
As it is mentioned above, you should add the code right after "RewriteEngine on" line.
__________________
Oleg Ignatiuk / Crawlability Inc.
Support Team Launches New DeskPro Powered Tool Enhanced Support at Your Service

vBSEO 3.2.0 Launched - Maximum Overdrive for Your Web Traffic! Over 100 Instant SEO Optimizations

6X Traffic - $1400 in One Day with vBSEO! Imagine What the vBSEO Patent Pending Technology Can Do For You.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Share on Facebook!
Reply With Quote
Reply

Thread Tools

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
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
vbSeo linking to appending /ta to my links, causing 404s j0rd Troubleshooting 1 03-25-2007 05:23 AM
404s and SEO majordude General Discussion 1 09-05-2006 02:53 PM
Discount for returning customers? Mike General Discussion 5 05-26-2006 07:26 PM
301 redirects from old mod_rewrite URLs to vbSEO URLs? BigBlueBall Custom Rewrite Rules 1 12-30-2005 09:15 AM


All times are GMT -4. The time now is 11:39 PM.


Powered by vBulletin Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.5 ©2008, Crawlability, Inc.