While veiwing my server error log, I've found few lines like this:
[Wed Jan 05 01:28:31 2011] [error] [client 212.95.54.167] script '/X/X/X/www.XXX/www/member.php' not found or unable to stat, referer: http://XXX/mybb/member.php?action=register
[Wed Jan 05 01:28:36 2011] [error] [client 212.95.54.167] script '/X/X/X/www.XXX/www/usercp.php' not found or unable to stat, referer: http://XXX/usercp.php?action=avatar
[Wed Jan 05 01:36:52 2011] [error] [client 91.201.66.56] File does not exist: /X/X/X/www.XXX/www/forum-55.html, referer: http://XXX/forum-55.html
[Wed Jan 05 01:37:00 2011] [error] [client 91.201.66.56] script '/X/X/X/www.XXX/www/usercp.php' not found or unable to stat, referer: http://XXX/usercp.php?action=avatar
[Wed Jan 05 01:37:07 2011] [error] [client 91.201.66.56] File does not exist: /X/X/X/www.XXX/www/thread-7652-lastpost.html, referer: http://XXX//thread-7652-lastpost.html
My forum is installed on /mybb/
So for example where does the user get the url
http://XXX/forum-55.html ?
When a visitor clivk on
http://XXX/mybb/member.php?action=register
How
/X/X/X/www.XXX/www/member.php is called ?
Thanks for reply
bburl is set to
http://XXX/mybb
Here is my htaccess file, it is located at server root /
Maybe it has something wrong
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Lines That should already be in your .htacess
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
<IfModule mod_rewrite.c>
# You may need to un-comment the following lines
# Options +FollowSymlinks
# To make sure that rewritten dir or file (/|.html) will not load dir.php in case it exist
# Options -MultiViews
# REMEBER YOU ONLY NEED TO STARD MOD REWRITE ONCE
RewriteEngine On
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
# RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
# REWRITE BASE
RewriteBase /
RewriteRule ^$ /mybb/portal.php [R=301]
RewriteRule ^bb/topic([0-9]+)\.html$ /mybb/mergeredirect.php?tid=$1 [L]
RewriteRule ^bb /mybb/index.php [L,R=301]
RewriteRule ^smf /mybb/index.php [L,R=301]
RewriteRule ^mybb/forum-([0-9]+)\.html$ /mybb/forumdisplay.php?fid=$1 [L,QSA]
RewriteRule ^mybb/forum-([0-9]+)-page-([0-9]+)\.html$ /mybb/forumdisplay.php?fid=$1&page=$2 [L,QSA]
RewriteRule ^mybb/thread-([0-9]+)\.html$ /mybb/showthread.php?tid=$1 [L,QSA]
RewriteRule ^mybb/thread-([0-9]+)-page-([0-9]+)\.html$ /mybb/showthread.php?tid=$1&page=$2 [L,QSA]
RewriteRule ^mybb/thread-([0-9]+)-lastpost\.html$ /mybb/showthread.php?tid=$1&action=lastpost [L,QSA]
RewriteRule ^mybb/thread-([0-9]+)-nextnewest\.html$ /mybb/showthread.php?tid=$1&action=nextnewest [L,QSA]
RewriteRule ^mybb/thread-([0-9]+)-nextoldest\.html$ /mybb/showthread.php?tid=$1&action=nextoldest [L,QSA]
RewriteRule ^mybb/thread-([0-9]+)-newpost\.html$ /mybb/showthread.php?tid=$1&action=newpost [L,QSA]
RewriteRule ^mybb/thread-([0-9]+)-post-([0-9]+)\.html$ /mybb/showthread.php?tid=$1&pid=$2 [L,QSA]
RewriteRule ^mybb/post-([0-9]+)\.html$ /mybb/showthread.php?pid=$1 [L,QSA]
RewriteRule ^mybb/announcement-([0-9]+)\.html$ /mybb/announcements.php?aid=$1 [L,QSA]
RewriteRule ^mybb/user-([0-9]+)\.html$ /mybb/member.php?action=profile&uid=$1 [L,QSA]
RewriteRule ^mybb/calendar-([0-9]+)\.html$ /mybb/calendar.php?calendar=$1 [L,QSA]
RewriteRule ^mybb/calendar-([0-9]+)-year-([0-9]+)\.html$ /mybb/calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]
RewriteRule ^mybb/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ /mybb/calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
RewriteRule ^mybb/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ /mybb/calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
RewriteRule ^mybb/calendar-([0-9]+)-week-(n?[0-9]+)\.html$ /mybb/calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]
RewriteRule ^mybb/event-([0-9]+)\.html$ /mybb/calendar.php?action=event&eid=$1 [L,QSA]
<IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</IfModule>
Any idea please?
My board seems to work normally, but my server error log is full of warning like this:
Quote:[Sat Jan 08 13:09:38 2011] [error] [client 84.23.34.227] script '/home/0/h/XXXXX/www/usercp.php' not found or unable to stat, referer: http://XXXXX/usercp.php?action=avatar
[Sat Jan 08 13:26:34 2011] [error] [client 91.217.153.96] File does not exist: /home/0/h/XXXXX/www/thread-7165-newpost.html, referer: http://XXXXX//thread-7165-newpost.html
[Sat Jan 08 13:26:42 2011] [error] [client 91.217.153.96] File does not exist: /home/0/h/XXXXX/www/thread-7165-lastpost.html, referer: http://XXXXX//thread-7165-lastpost.html
Please notice the double slash // instead of /mybb/
In the ifrst line, how the referer is
http://XXXXX/usercp.php?action=avatar ?
Where the user get this link form ? it should be
http://XXXXX/mybb/usercp.php?action=avatar
It's probably just spambots, if they aren't valid URL's then ignore the warnings.
Quite strange! The above errors seem gone after adding the following line to htaccess:
RewriteBase /mybb