problem with part of my site when using LiteSpeed

#21
root httaccess continued
Code:
RewriteRule ^forums.html forums.php?page=Forums [L,NS]
RewriteRule ^forums-allread.html forums.php?page=Forums&op=allread [L,NS]
RewriteRule ^forum-(.*).html forums.php?page=Forums&show=forum&id=$1 [L,NS]
RewriteRule ^thread-(.*).html forums.php?page=Forums&show=thread&id=$1 [L,NS]
RewriteRule ^newthread-(.*).html forums.php?page=Forums&show=newthread&fid=$1 [L,NS]
RewriteRule ^reply-(.*)-(.*).html forums.php?page=Forums&show=reply&id=$1&fid=$2 [L,NS]
RewriteRule ^threadnav-(.*)-(.*).html forums.php?page=Forums&show=forum&id=$1&nav=$2 [L,NS]
RewriteRule ^postnav-(.*)-(.*).html forums.php?page=Forums&show=thread&id=$1&nav=$2 [L,NS]
RewriteRule ^reply.quote-([0-9]*)-([0-9]*)-([0-9]*).html forums.php?page=Forums&show=reply&id=$2&fid=$3&quote=$1 [L,NS]
RewriteRule ^post.report-([0-9]*)-([0-9]*).html forums.php?page=Forums&show=report&id=$1&return_thread=$2 [L,NS]

RewriteRule ^video-([0-9]*).html video.php?id=$1 [L,NS]

RewriteRule ^files.html index.php?page=Files [L,NS]
RewriteRule ^filecat-([0-9]*).html index.php?page=Files&action=cat&cat_id=$1 [L,NS]
RewriteRule ^file-([0-9]*).html index.php?page=Files&action=showfile&id=$1 [L,NS]
RewriteRule ^file-([0-9]*)-(.*).html index.php?page=Files&action=showfile&id=$1 [L,NS]
RewriteRule ^([0-9]*)-([0-9]*)-filenav.html index.php?page=Files&action=cat&cat_id=$1&nav=$2 [L,NS]
RewriteRule ^([0-9]*)-([0-9]*)-filenav-(.*).html index.php?page=Files&action=cat&cat_id=$1&nav=$2&orderby=$3 [L,NS]
RewriteRule ^file.reportcomment.([0-9]*)-([0-9]*)-(.*).html index.php?page=Files&action=showfile&id=$2&op=reportcomment&commentid=$1 [L,NS]

RewriteRule ^submitreview-(.*).html index.php?page=Submit&type=Article&ratingid=$1 [L,NS]
RewriteRule ^submit-news.html index.php?page=Submit+News [L,NS]
RewriteRule ^submit-file.html index.php?page=Submit&type=File [L,NS]
RewriteRule ^submit-article.html index.php?page=Submit&type=Article [L,NS]
RewriteRule ^submitcheat-(.*)-(.*).html index.php?page=Submit&type=Cheats&game=$1&platform=$2 [L,NS]
RewriteRule ^submit-media.html index.php?page=Submit&type=Media [L,NS]
RewriteRule ^submit-link.html index.php?page=Submit&type=Links [L,NS]

RewriteRule ^game.cheats-([0-9]*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=Cheats [L,NS]
RewriteRule ^game.media-([0-9]*)-([0-9*]*).html index.php?page=Games&action=showgame&id=$1&show=Media&nav=$3 [L,NS]
RewriteRule ^game.articles-([0-9]*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=Articles [L,NS]
RewriteRule ^game.faq-([0-9]*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=FAQ [L,NS]
RewriteRule ^game.achievements-([0-9]*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=Achievements [L,NS]
RewriteRule ^game.files-([0-9]*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=Files [L,NS]
RewriteRule ^game.video-([0-9]*)-(.*).html index.php?page=Games&action=showgame&id=$1&show=Video [L,NS]

RewriteRule ^story-([0-9]*).html index.php?page=Story&id=$1 [L,NS]
RewriteRule ^story-([0-9]*)-(.*).html index.php?page=Story&id=$1 [L,NS]
RewriteRule ^story.reportcomment.([0-9]*)-([0-9]*)-(.*).html index.php?page=Story&id=$2&op=reportcomment&commentid=$1 [L,NS]

RewriteRule ^notepad.html index.php?page=User+CP&action=notepad [L,NS]
RewriteRule ^sig.jpg sig.php [L,NS]
RewriteRule ^rss.xml rss.php [L,NS]
RewriteRule ^rss-articles.xml rss-articles.php [L,NS]

Forums httaccess
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 %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} /blogs/(clientscript|images)/
RewriteRule ^(.*)$ $1 [L]

RewriteRule ^blogs/([-a-z0-9]+)-([0-9]+)/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})\.html blogs/viewblog.php?blogtitle=$1&userid=$2&month=$4&year=$3&day=$5 [QSA,L]
RewriteRule ^blogs/([-a-z0-9]+)-([0-9]+)/([0-9]{4})/([0-9]+)/ blogs/viewblog.php?blogtitle=$1&userid=$2&month=$4&year=$3 [QSA,L]
RewriteRule ^blogs/([-a-z0-9]+)-([0-9]+)/category/([-,a-z0-9]+)\.html blogs/viewblog.php?blogtitle=$1&userid=$2&categorydata=$3 [QSA,L]
RewriteRule ^blogs/([-a-z0-9]+)-([0-9]+)/archives\.html blogs/viewblog.php?blogtitle=$1&userid=$2&displaymode=archive [QSA,L]
RewriteRule ^blogs/([-a-z0-9]+)-([0-9]+)/([-a-zA-Z0-9_]+)-([0-9]+)/comment-([0-9]+)\.html blogs/viewblog.php?blogtitle=$1&userid=$2&entrytitle=$3&entry=$4&c=$5 [QSA,L]
RewriteRule ^blogs/([-a-z0-9]+)-([0-9]+)/([-a-zA-Z0-9_]+)-([0-9]+)/ blogs/viewblog.php?blogtitle=$1&userid=$2&entrytitle=$3&entry=$4 [QSA,L]
RewriteRule ^blogs/([-a-z0-9]+)-([0-9]+)/ blogs/viewblog.php?blogtitle=$1&userid=$2 [QSA,L]

RewriteCond %{HTTP_HOST} !^www\.gamerzneeds\.net
RewriteCond %{REQUEST_URI} forums/
RewriteRule (.*) http://www.gamerzneeds.net/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]

DirectoryIndex index.php index.html

As soon as we can sort this out I will be able to purchase LiteSpeed so hopefully it will be fixed this time.
 

mistwang

LiteSpeed Staff
#22
I don't think it is the rewrite rules in .htaccess. requests to admincp should not be rewritten.
You can turn on rewrite log by adding "RewriteLogLevel 9" for the configuration in that vhost in httpd.conf. Then you can check lsws/logs/error.log.

strace the lsphp process is the way to find out the problem.
 
Top