Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Apache
Author Message
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Sat Mar 18, 2006 7:31 am Reply with quote

ok here's the story

im getting 404 mails that googlebot is getting the wrong pages.

im using the cpanel guide rewrite that raven posted in a forum somewhere .
but im getting mails and for some weird reason googlebot looks for Forwarders.html instead of cpaneluserguide-Forwarders.html

so in 99% the prefix cpaneluserguide- is missing.
and also it shows htm instead of html.

what i dont get is why the rewrite seems to be ok but google forgets the prefix.

Anyone?
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Mar 18, 2006 7:44 am Reply with quote

Without seeing the actual re-write thats a tough one.
Has google indexed old pages prior to using the tap?
 
View user's profile Send private message Send e-mail
hitwalker







PostPosted: Sat Mar 18, 2006 8:06 am Reply with quote

no ,i dont have any old pages...lol
before the rewrite it was just the original php

the codes.....

Code:



#Cpanel user guide
RewriteRule ^cpaneluserguide-([[:alnum:]]*).html cpaneluserguide.html?page=$1\.htm [L]
RewriteRule ^cpaneluserguide.html cpaneluserguide.html [L]

and this is GT-CPanel_User_Guide.php

<?php

$urlin = array(
"'(?<!/)modules.php\?name=CPanel_User_Guide&amp;page=([[:alnum:]]*)\.htm'",
"'(?<!/)modules.php\?name=CPanel_User_Guide'",
);

$urlout = array(
"cpaneluserguide-\\1.html",
"cpaneluserguide.html",
);

?>
 
hitwalker







PostPosted: Sun Mar 19, 2006 6:17 am Reply with quote

anyone?
 
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sun Mar 19, 2006 7:35 am Reply with quote

Here is what I use on my site
Code:


(IN)
"'(?<!/)modules.php\?name=CPanel_User_Guide&amp;page=([[:alnum:]]*)\.htm'",
"'(?<!/)modules.php\?name=CPanel_User_Guide'",

(OUT)
"cpaneluserguide-\\1.html",
"cpaneluserguide.html",


#cPanel User Guide
RewriteRule ^cpaneluserguide-([[:alnum:]_-]*).html cpaneluserguide.html?page=$1\.htm [L]
RewriteRule ^cpaneluserguide.html cpaneluserguide.html [L]
 
View user's profile Send private message
hitwalker







PostPosted: Sun Mar 19, 2006 8:15 am Reply with quote

hi raven, yes they are the same cause i use yours like you published in a topic some time ago,so thats why i cant understand where the googlebot gets the wrong link from.
 
Raven







PostPosted: Sun Mar 19, 2006 8:18 am Reply with quote

They aren't the same Smile

You have
RewriteRule ^cpaneluserguide-([[:alnum:]]*).html cpaneluserguide.html?page=$1\.htm [L]

and I have
RewriteRule ^cpaneluserguide-([[:alnum:]_-]*).html cpaneluserguide.html?page=$1\.htm [L]
 
hitwalker







PostPosted: Sun Mar 19, 2006 8:24 am Reply with quote

oh nice....didnt saw that.. Bang Head
but then you changed it at some point....lol,i must have missed that somewhere..

thanks raven..
 
Raven







PostPosted: Sun Mar 19, 2006 8:40 am Reply with quote

If I remember right, the new cpaneluserguide was updated recently and that caused me to have to change my rules Smile
 
hitwalker







PostPosted: Sun Mar 19, 2006 8:47 am Reply with quote

New?
i just got googlebot again looking for searchEngineSubmit.htm and webFTPstats.htm
 
Raven







PostPosted: Sun Mar 19, 2006 8:49 am Reply with quote

hitwalker wrote:
New?
i just got googlebot again looking for searchEngineSubmit.htm and webFTPstats.htm

I don't know what that means ???
 
hitwalker







PostPosted: Sun Mar 19, 2006 9:08 am Reply with quote

just now googlebot looked for..
removingAnonymousFTPaccess.htm but i'll wait and see how it goes...
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Apache

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©