pages are indexed with anchor tags

Discussions about SEO principles. Learn how to get better indexed.

Moderator: Moderators

Re: pages are indexed with anchor tags

Postby dcz » Sat Jul 16, 2011 9:05 am

I bet that these are either deleted or posted in private forums (that once where public or content was moved to).
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21411
Joined: Fri Apr 28, 2006 9:03 pm

Advertisement

Re: pages are indexed with anchor tags

Postby Stephen26 » Mon Jul 18, 2011 3:34 pm

dcz wrote:I bet that these are either deleted or posted in private forums (that once where public or content was moved to).

Stephen26 wrote:Thanks for your answer! All redirects for existing sites work, but deleted posts which we have a lot of get a 302-redirect to the correct 404 error pages which have such URLs:http://www.domain.tld/topic1234.html.

Right. Just deleted posts get 302-redirected to example.com/topic1234.html-URLs and then those give out the correct 404 HTTP Header (which I could change to 410). This can or will irritate spiders, At the moment I have a Disallow: /topic*.html in my robots.txt.

At least some good news: You were right, the number of indexed *.php-files has been going down pretty fast (-30k within some days).
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: pages are indexed with anchor tags

Postby Stephen26 » Wed Jul 20, 2011 9:33 pm

What might be the reason that suddenly post-URLs are being indexed (when not blocked via robots.txt) and worse that post-URLs from deleted threads get 302-redirected to 404 error pages (those have URLs like -http://www.example.com/topic123.html)? I really want to fix this (just index, forum and topic-URLs in the index) and not uninstall the SEO mod after a lot of work.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: pages are indexed with anchor tags

Postby dcz » Thu Jul 21, 2011 6:43 am

404 header does take more time than 301 to be taken into account, you could 301 redirect un-existing post to index if you prefer. Note that it would be far worst without the USU and the zero dupe.
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21411
Joined: Fri Apr 28, 2006 9:03 pm

Re: pages are indexed with anchor tags

Postby Stephen26 » Thu Jul 21, 2011 7:50 pm

1)
Thanks for your answer! I could 301 redirect those URLs (-http://www.example.com/topic123.html type) to root. But keep in mind that those URLs are already 302 redirects of deleted post-URLs (-http://www.example.com/viewtopic.php?f=12&t=345&p=6789 type). So it would be a 302 -> 301 redirect chain. Does that even work? Or will Google just look at the first HTTP Status Code?

2)
Do you have any idea what might cause these 302 redirects of deleted post-URLs? Any guess how I could fix this instead of trying out work-arounds?
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: pages are indexed with anchor tags

Postby dcz » Thu Jul 21, 2011 10:21 pm

If the 302 is the result of a trigger_error call, then, just implement the 301 before and bypass the message.
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21411
Joined: Fri Apr 28, 2006 9:03 pm

Re: pages are indexed with anchor tags

Postby Stephen26 » Fri Jul 22, 2011 7:25 am

I'd love to do that, but don't know how?
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: pages are indexed with anchor tags

Postby dcz » Fri Jul 22, 2011 7:39 am

In viewtopic.php, add :

Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
if (!empty($phpbb_seo->seo_opt['zero_dupe']['on'])) {
        $phpbb_seo->seo_redirect($phpbb_seo->seo_path['phpbb_urlR']);
}
// www.phpBB-SEO.com SEO TOOLKIT END

Before all occurences of :
Code: Select all
trigger_error('NO_TOPIC');


And you'll be set.

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21411
Joined: Fri Apr 28, 2006 9:03 pm

Re: pages are indexed with anchor tags

Postby Stephen26 » Fri Jul 22, 2011 7:43 am

I'll try that on my test-board within the next hours. Thanks!
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: pages are indexed with anchor tags

Postby Stephen26 » Fri Jul 22, 2011 9:16 am

When I enter the URL of a deleted post in my browser I get redirected to root, but when I enter it in web-sniffer it still shows a 302-redirect to -http://www.example.com/topic123.html.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: pages are indexed with anchor tags

Postby dcz » Fri Jul 22, 2011 12:55 pm

Could you PM me a real example ?
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21411
Joined: Fri Apr 28, 2006 9:03 pm

Re: pages are indexed with anchor tags

Postby Stephen26 » Fri Jul 22, 2011 1:06 pm

Done!
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: pages are indexed with anchor tags

Postby dcz » Fri Jul 22, 2011 2:26 pm

Ok, I see, try to add the same code once more before the first :
Code: Select all
      redirect(append_sid("{$phpbb_root_path}viewtopic.$phpEx", "t=$topic_id" . (($forum_id) ? "&f=$forum_id" : '')));
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21411
Joined: Fri Apr 28, 2006 9:03 pm

Re: pages are indexed with anchor tags

Postby Stephen26 » Fri Jul 22, 2011 2:31 pm

Didn't work, but thanks anyways.
Last edited by Stephen26 on Fri Jul 22, 2011 4:48 pm, edited 1 time in total.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

Re: pages are indexed with anchor tags

Postby Stephen26 » Fri Jul 22, 2011 4:48 pm

Even if I replace
Code: Select all
trigger_error('NO_TOPIC');
with
Code: Select all
redirect(append_sid("{$phpbb_root_path}index.$phpEx"));

for testing purpose the 302-redirect to example.com/topic345.html occurs (web sniffer shows that). This happens just with URLs like this: example.com/viewtopic?f=12&t=345&p=67890 where the Posting p doesn't exist anymore because forum and / or topic got deleted.
I install and configure phpBB-SEO (and other mods) for a fair price and very fast. If you are interested simply send me a private message.
Stephen26
phpBB SEO Team
phpBB SEO Team
 
Posts: 434
Joined: Mon May 03, 2010 7:06 am

PreviousNext

Return to SEO Principles

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests