phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
member pages are being indexed wrong

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
::  
Author Message
noworyz
PR0
PR0


Joined: 08 Jan 2007
Posts: 87

member pages are being indexed wrongPosted: 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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

member pages are being indexed wrongPosted: 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 Wink.

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
Visit poster's website
noworyz
PR0
PR0


Joined: 08 Jan 2007
Posts: 87

member pages are being indexed wrongPosted: 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 Wink.

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
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14279

member pages are being indexed wrongPosted: Fri Mar 02, 2007 9:17 am    Post subject: Re: member pages are being indexed wrong

As you can see, this is already dealt with by the zero dupe : http://www.egriz.com/GrizBoard/member1858.html Wink
So you want to keep the (php|html) rewriterule to make sure .html will be redirected to .php.
++

_________________
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
Visit poster's website
noworyz
PR0
PR0


Joined: 08 Jan 2007
Posts: 87

member pages are being indexed wrongPosted: 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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: