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  
 
   
Redirect problems if HighLighted Text

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
::  
Author Message
bv



Joined: 11 Feb 2008
Posts: 16

Redirect problems if HighLighted TextPosted: Mon Feb 11, 2008 3:48 am    Post subject: Redirect problems if HighLighted Text

Hi,

installed the pre-mod.

It seems that high lighted text in urls causes an error in redirection somehow...


With urls like:

-t20508.html?hilit=big%20bike#p48352

-t20508.html?hilit=big%20bike


Is there something I can do about this?

regards,

bv

Quote:

The page isn't redirecting properly

Firefox has detected that the server is redirecting the request for this address in a way that will never complete.

This problem can sometimes be caused by disabling or refusing to accept cookies


Last edited by bv on Fri Feb 15, 2008 7:33 pm; edited 1 time in total
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3743

Redirect problems if HighLighted TextPosted: Mon Feb 11, 2008 8:59 am    Post subject: Re: Redirect problems if HighLighted Text

It's one of the very few bugs of this release. Actually, it's a tricky matter since part of the problematic is browser dependent (FF will most likely encode accentuated chars in Latin1 when IE and opera will use utff8), but we'll soon come up with a final fix for this.

Until then, you'll find a workaround here : http://www.phpbb-seo.com/boards/advanced-seo-url/discussions-vt1334.html#14085

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
bv



Joined: 11 Feb 2008
Posts: 16

Redirect problems if HighLighted TextPosted: Tue Feb 12, 2008 2:34 pm    Post subject: Re: Redirect problems if HighLighted Text

Oh, funny characters in user names are not converted to ascii in urls...

Lapré becomes /member/Lapr%25C3%25A9 ....

Otherwise, thanks a lot.....

http://balipod.com/
Back to top
bv



Joined: 11 Feb 2008
Posts: 16

Redirect problems if HighLighted TextPosted: Tue Feb 12, 2008 5:52 pm    Post subject: Re: Redirect problems if HighLighted Text

Oh....

It seems that redirects are not ok if a user wants to display a post that is hidden because of being made by a foe .....
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3743

Redirect problems if HighLighted TextPosted: Fri Feb 15, 2008 3:33 pm    Post subject: Re: Redirect problems if HighLighted Text

bv wrote:
Oh, funny characters in user names are not converted to ascii in urls...

Lapré becomes /member/Lapr%25C3%25A9 ....

Otherwise, thanks a lot.....

http://balipod.com/


This is normal, that's how bad utf8 urlencode looks like, you'll find more about this in the install file, the ID removing for profile really is meant for alphanumeric chars, at least, if you want nice urls.

About the redirected link that shouldn't could you post here the guilty url, before and after the redirect ?

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
bv



Joined: 11 Feb 2008
Posts: 16

Redirect problems if HighLighted TextPosted: Fri Feb 15, 2008 7:39 pm    Post subject: Re: Redirect problems if HighLighted Text

When a a post is blocked becuase the poster being on your foe list, you get a text like this:

This post was made by USER who is currently on your ignore list. Display this post.

And the link points to:

http://domain.com/viewtopic.php?f=2&t=20650&p=48451&view=show#p48451

When clicked, the page redirects to:

http://domain.com/forum-f2/topic-title-t20650.html#p48451

and the hidden post is not shown....
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3743

Redirect problems if HighLighted TextPosted: Sat Feb 16, 2008 8:04 am    Post subject: Re: Redirect problems if HighLighted Text

Thanks, we really need to update the zero dupe.

so, until then, you can do this :

In viewtopic.php, add :

Code:
   $phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'view=show') === FALSE) );


after :

Code:
   $phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'view=print') === FALSE) );


and add :

Code:
      $phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'view=show') !== FALSE), false, 'do');


after :
Code:
      $phpbb_seo->seo_cond( (utf8_strpos($phpbb_seo->seo_path['uri'], 'view=print') !== FALSE), false, 'do');


should do the trick.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
bv



Joined: 11 Feb 2008
Posts: 16

Redirect problems if HighLighted TextPosted: Sun Feb 17, 2008 6:47 am    Post subject: Re: Redirect problems if HighLighted Text

Yes, trick worked, thanks..
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 SEO TooLKit  » phpBB SEO Premod
Page 1 of 1

Navigation Similar Topics

Jump to: