vBulletin SEO Forums

SEO

vBulletin Search Engine Optimization

Buy vBSEO Now! HACKER SAFE certified sites prevent over 99.9% of hacker crime.
ne nw
New vBSEO Discount Level for Network Builders Meet vBSEO Team in New York (Nov. 3rd & 4th) 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

Sitemap URL is giving 404

This is a discussion on Sitemap URL is giving 404 within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; I have tried to access my sitemap via the URL in the AdminCP >> vBSEO Sitemap Reports and when I ...

Go Back   vBulletin SEO Forums > vBSEO Google/Yahoo Sitemap > Troubleshooting

Enhancing 80 million pages.

Register FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-18-2008, 05:27 PM
Junior Member
 
Join Date: Oct 2005
Posts: 24
Sitemap URL is giving 404

I have tried to access my sitemap via the URL in the AdminCP >> vBSEO Sitemap Reports and when I go to the URL I get a 404 error and redirected to the forum home page.

I tried the suggestion here on this post:
Sitmap not found 404

In my http.conf I have the following
PHP Code:
<Directory /home/cooking/public_html/forums/>
# 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 /

RewriteRule ^((urllist|sitemap_).*.(xml|txt)(.gz)?)$vbseo_sitemap/vbseo_getsi$

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap/)
RewriteRule ^((archive/)?(.*.php(/.*)?)?)$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME}!^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA
What should I try next to get the sitemap to work?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 08-18-2008, 05:30 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,473
this line shouldn't be commented out (remove #)

Code:
#RewriteCond %{REQUEST_FILENAME}!^(admincp|modcp|clientscript|cpstyles|images)/
 


and you should also add in vbseo_sitemap to it as in

Code:
RewriteCond %{REQUEST_FILENAME}!^(admincp|modcp|clientscript|cpstyles|images|vbseo_sitemap)/
 

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3  
Old 08-18-2008, 05:45 PM
Junior Member
 
Join Date: Oct 2005
Posts: 24
My server admins commented that out because it was causing a syntax error.
Quote:
Syntax error on line 534 of /usr/local/apache2.2/conf/httpd.conf:
RewriteCond: bad argument line '%{REQUEST_FILENAME}!^(admincp|modcp|clientscript| cpstyles|images|vbseo_sitemap/)/'
What should I try next?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4  
Old 08-18-2008, 05:52 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,473
Code:
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|useralbums|vbseo_sitemap)/
that is a direct copy/paste from mine. no typos or syntax issues.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5  
Old 08-18-2008, 06:04 PM
Junior Member
 
Join Date: Oct 2005
Posts: 24
well the syntax issues are resolved (there was a space missing) and now it allows me to restart Apache unfortunately I still get a 404 when trying to access the sitemap. What else should I look at?

Here are the current rules:
PHP Code:
RewriteRule ^((urllist|sitemap_).*.(xml|txt)(.gz)?)$vbseo_sitemap/vbseo_getsitemap.php?sitemap=$[L]

RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap/)
RewriteRule ^((archive/)?(.*.php(/.*)?)?)$ vbseo.php [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond 
%{REQUEST_FILENAME} !-d
RewriteCond 
%{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images|useralbums|vbseo_sitemap)/
RewriteRule ^(.+)$ vbseo.php [L,QSA
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6  
Old 08-18-2008, 06:07 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,473
what link are you using to access?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7  
Old 08-18-2008, 06:08 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,473
actually, i see it already...

you have another space issue.

the $ on line 1 is wrong.

Code:
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8  
Old 08-18-2008, 06:09 PM
Junior Member
 
Join Date: Oct 2005
Posts: 24
http://www1.discusscooking.com/forum...p_index.xml.gz

The 1 is after the www1 because I use a load balanced setup. This is the primary server (master) and once I have this dialed in then I will have to configure the other web servers.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9  
Old 08-18-2008, 06:13 PM
Junior Member
 
Join Date: Oct 2005
Posts: 24
You are THE MAN Brian. It's working now. Thanks for your help!

I think this was caused by text wrapping issues when I posted the rewrite code for the server admins to add to the httpd.conf.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10  
Old 08-18-2008, 06:44 PM
briansol's Avatar
Senior Member
vBSEO Pre-Release TeamDesign for SEOBig Board Administrator
 
Real Name: Brian
Join Date: Apr 2006
Location: Central CT, USA
Posts: 5,473
glad you got it fixed
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Giving vBSEO as a contest Prize FightRice Pre-Sales Questions 2 11-01-2006 12:02 AM
CRR giving error if thread has special name jluerken Custom Rewrite Rules 2 07-15-2006 04:20 AM
test.php giving Database Error chris06 Troubleshooting 1 12-07-2005 04:42 PM
All posts with a certain word in it are giving an error nchoose Troubleshooting 1 10-25-2005 05:45 AM


All times are GMT -4. The time now is 04:53 PM.


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