| |
| |
|
|
|
|
| |
|
| |
|
| :: |
| Author |
Message |
noworyz PR0

Joined: 08 Jan 2007 Posts: 87
|
Posted: Mon Feb 26, 2007 7:07 am Post subject: member pages are being indexed wrong |
|
|
I went to my google webmaster tools and notices that there were over 400 pages that could not be found. They are all member pages such as
http://www.egriz.com/GrizBoard/member1858.html
I have my member pages set to have a .php suffix as seen below in my .htaccess rewrite rule
| Code: | | RewriteRule ^www/GrizBoard/member([0-9]+)\.php$ /GrizBoard/profile.php?mode=viewprofile&u=$1 [QSA,L] |
and if you try the above member url with the .php ending it works fine
http://www.egriz.com/GrizBoard/member1858.php
Why and where is google picking up the .html ending for the member pages? Is there a file in my site that I have to set? Thanks |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
Posted: Mon Feb 26, 2007 4:26 pm Post subject: Re: member pages are being indexed wrong |
|
|
Google must have "seen" some member profile links with the html suffix.
You can just open the rewriterule a bit to allow both suffixes and let the zero dupe do it's job (eg only keep the correct one .
Just replace :
| Code: | | RewriteRule ^www/GrizBoard/member([0-9]+)\.php$ /GrizBoard/profile.php?mode=viewprofile&u=$1 [QSA,L] |
With :
| Code: | | RewriteRule ^www/GrizBoard/member([0-9]+)\.(php|html)$ /GrizBoard/profile.php?mode=viewprofile&u=$1 [QSA,L] |
Both .html and .php should work, the ones ending with .html be redirected to the .php version.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
noworyz PR0

Joined: 08 Jan 2007 Posts: 87
|
Posted: Thu Mar 01, 2007 3:58 pm Post subject: Re: member pages are being indexed wrong |
|
|
| dcz wrote: | Google must have "seen" some member profile links with the html suffix.
You can just open the rewriterule a bit to allow both suffixes and let the zero dupe do it's job (eg only keep the correct one .
Just replace :
| Code: | | RewriteRule ^www/GrizBoard/member([0-9]+)\.php$ /GrizBoard/profile.php?mode=viewprofile&u=$1 [QSA,L] |
With :
| Code: | | RewriteRule ^www/GrizBoard/member([0-9]+)\.(php|html)$ /GrizBoard/profile.php?mode=viewprofile&u=$1 [QSA,L] |
Both .html and .php should work, the ones ending with .html be redirected to the .php version.
++ |
so by changing the .htaccess, eventually all the .html pages in the google index will filter out and be replaced by .php pages?
I just want to make sure that what ever is done, google knows that .php is the one to use.
Also, is it ok to leave these changes in place or should I eventually go back to the original replacing (php|html) with just php. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 14279
|
|
| Back to top |
|
 |
noworyz PR0

Joined: 08 Jan 2007 Posts: 87
|
Posted: Fri Mar 02, 2007 3:23 pm Post subject: Re: member pages are being indexed wrong |
|
|
once again thanks for putting up with me. I think I am actually learning this quite well! Thanks for teaching me this!
Chris |
|
|
| Back to top |
|
 |
|
|
| Navigation |
Similar Topics |
|
|
|
|
|
|
|
| |
|
|
|
|
| |
|
|
|
|
| |