Author |
Message |
hitwalker
Sells PC To Pay For Divorce

Joined:
Posts: 5661
|
Posted:
Sat Mar 18, 2006 7:31 am |
|
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? |
|
|
|
 |
Guardian2003
Site Admin

Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam
|
Posted:
Sat Mar 18, 2006 7:44 am |
|
Without seeing the actual re-write thats a tough one.
Has google indexed old pages prior to using the tap? |
|
|
|
 |
hitwalker

|
Posted:
Sat Mar 18, 2006 8:06 am |
|
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&page=([[:alnum:]]*)\.htm'",
"'(?<!/)modules.php\?name=CPanel_User_Guide'",
);
$urlout = array(
"cpaneluserguide-\\1.html",
"cpaneluserguide.html",
);
?>
|
|
|
|
|
 |
hitwalker

|
Posted:
Sun Mar 19, 2006 6:17 am |
|
|
|
 |
Raven
Site Admin/Owner

Joined: Aug 27, 2002
Posts: 17088
|
Posted:
Sun Mar 19, 2006 7:35 am |
|
Here is what I use on my site
Code:
(IN)
"'(?<!/)modules.php\?name=CPanel_User_Guide&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]
|
|
|
|
|
 |
hitwalker

|
Posted:
Sun Mar 19, 2006 8:15 am |
|
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

|
Posted:
Sun Mar 19, 2006 8:18 am |
|
They aren't the same
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

|
Posted:
Sun Mar 19, 2006 8:24 am |
|
oh nice....didnt saw that..
but then you changed it at some point....lol,i must have missed that somewhere..
thanks raven.. |
|
|
|
 |
Raven

|
Posted:
Sun Mar 19, 2006 8:40 am |
|
If I remember right, the new cpaneluserguide was updated recently and that caused me to have to change my rules  |
|
|
|
 |
hitwalker

|
Posted:
Sun Mar 19, 2006 8:47 am |
|
New?
i just got googlebot again looking for searchEngineSubmit.htm and webFTPstats.htm |
|
|
|
 |
Raven

|
Posted:
Sun Mar 19, 2006 8:49 am |
|
hitwalker wrote: | New?
i just got googlebot again looking for searchEngineSubmit.htm and webFTPstats.htm |
I don't know what that means ??? |
|
|
|
 |
hitwalker

|
Posted:
Sun Mar 19, 2006 9:08 am |
|
just now googlebot looked for..
removingAnonymousFTPaccess.htm but i'll wait and see how it goes... |
|
|
|
 |
|