Forum Moderators: phranque
but I do not get 404 errors for my other mod rewrites pages that are
just http://www.example.com/main_name form
In my error log its only showing as
[Tue Aug 28 21:07:37 2007] [error] [client 38.99.44.104] File does not exist: /home/user/public_html/main_dir/259561/
seems only coming from 38.99.44.104 ip# mostly, so assuming that is a googlebot..
There are no references anywhere to that dir w/o ending part of url anywhere...
I have tried and tested and all the includes are working fine it
seems(tested by if statements on @include(dirname(__FILE__)."/
config.php"); statement
...and I do not get 404s from regular users in log
I have tried setting the header at top to header("HTTP/1.1 200 OK");
header ( 'Status: 200' ); with no luck.
I have checked my header responses using googlebot emulators and get fine 200 response, and 404 for my error pages as well.
I am stumped have no clue why would be getting a 404 here in logs
Any ideas for me here? Thanks in advance!
Brandon
[edited by: eelixduppy at 3:57 am (utc) on Aug. 29, 2007]
[edited by: brandon0401 at 4:13 am (utc) on Aug. 29, 2007]
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R,L]
RewriteRule ^dir/(.*)/(.*)\.html$ url.php?url=$1&text=$2
RewriteRule ^main_dir/(.*)/(.*)\.html$ comment.php?id=$1&text=$2
[edited by: eelixduppy at 4:00 am (utc) on Aug. 29, 2007]
The IP address you cited is currently being used by cuill.com. They deploy the badly-behaved "Twiceler" robot, which doesn't fetch or heed robots.txt.
In short, unless your script is doing "GETs" of these included files using the HTTP protocol instead of reading them locally from the server filesystem, and unless you are seeing errors in Google Webmaster Tools, I flat wouldn't worry about this.
Jim
RewriteCond %{HTTP_HOST} ^example\.com [NC]
RewriteRule (.*) http://www.example.com/$1 [[b]R=301[/b],L]
Jim
Ya the problem is I am seeing 404's in webmaster tools..
I just pointed that out from logs cause I see alot of it from that ip#...
when you mean http for include do you mean
<?php include("http://www.example.com/include.php");?>
Cause I am doing that...
Why would it cause webmaster tools to report that with the file name cutoff and
Is that why?
function.main or function.include at end like above...
Thanks for the tip on rewrite...
does
RewriteRule ^dir/(.*)/(.*)\.html$ url.php?url=$1&text=$2
RewriteRule ^main_dir/(.*)/(.*)\.html$ comment.php?id=$1&text=$2
look right?
and rewriterule ^example index.php?category=160
Thanks in advance.