Vbseo Sitemap Problem (.htaccess)

#1
Hi they all. Please help me.

We use litespeed for 15 days trial version. But we have one problem. 404 Page not found for my XML files.

Example :
www ----- com/sitemap_index.xml.gz


.htaccess file
DirectoryIndex index.html index.htm index.php forums.php

RewriteEngine On

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

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


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admin|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
 
Last edited:

webizen

Well-Known Member
#2
According to our lab test, the result are the same with Apache and LSWS as follows:

with rewrite rule#1, the request to www ----- com/sitemap_index.xml.gz to be mapped to

www ----- com/vbseo_sitemap/vbseo_getsitemap.php?sitemap=sitemap_index.xml.gz

The new url go through rewrite rules again and hit the 2nd rule as RewriteCond is met.

RewriteRule ^((archive/)?(.*.php(/.*)?))$ vbseo.php [L,QSA]

If /vbseo.php is missing, then 404 will be returned.

Can you confirm if vbseo.php exists under docroot?
 
Last edited:

webizen

Well-Known Member
#4
Hi,

The link was running on Apache when I checked yesterday.

~>curl -IL http://www...com/sitemap_index.xml.gz
HTTP/1.1 200 OK
Date: Sat, 27 Nov 2010 19:07:35 GMT
Server: Apache
Content-Length: 359
Content-Type: application/x-gzip

It is running on Litespeed when I check now.

~>curl -IL http://www...com/sitemap_index.xml.gz
HTTP/1.1 200 OK
Date: Sun, 28 Nov 2010 19:47:33 GMT
Server: LiteSpeed
Connection: close
Content-Type: application/x-gzip

Everything seems to be fine with LSWS now. Anything changed on your side?
 
Top