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  
 
   
iquest instead of opening question mark

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


Joined: 20 Jun 2007
Posts: 52

iquest instead of opening question markPosted: Tue Jul 10, 2007 1:28 pm    Post subject: iquest instead of opening question mark

I'm getting this kind of URLs (phpBB3 with your great SEO mods):

http://mydomain.com/phpBB3/foro-de-principiantes-f75/iquest-que-me-compro-t137418.html

The topic title is "¿Qué me compro?". In spanish, we use opening question marks. They are rendered as "iquest" with this mod. Also, opening exclamation marks (¡) are rendered as "iexcl".

How could I avoid this? Could I expect another rendering issues like those ones? If I'm exposed to this kind of URLs, I'd prefer to get rid of the topic title injection. Is this possible?

And what about stopwords? I would like to add spanish stopwords to avoid common words in titles injection.
Back to top
Xabi
PR0
PR0


Joined: 20 Jun 2007
Posts: 52

iquest instead of opening question markPosted: Tue Jul 10, 2007 2:21 pm    Post subject: Re: iquest instead of opening question mark

More "strange" renderings: ª is rendered as "ordf" (ª and º are used for ordinals in spanish: 2ª, 2º... is like 2th).
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3987

iquest instead of opening question markPosted: Tue Jul 10, 2007 6:28 pm    Post subject: Re: iquest instead of opening question mark

A method started to be developped to deal with special cases on this post.

But I'm thinking that since these only are the result of an htmlentities() pass, moving this line :
Code:
      $url = preg_replace('`&(amp;)?#?[a-z0-9]+;`i','-',$url);


After :
Code:
      $url = preg_replace( '`&([a-z]+)(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig);`i',"\\1", $url );


should be enough in phpbb_seo_class.php to filter all these.

_________________
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
Xabi
PR0
PR0


Joined: 20 Jun 2007
Posts: 52

iquest instead of opening question markPosted: Tue Jul 10, 2007 6:33 pm    Post subject: Re: iquest instead of opening question mark

Great! That one did the trick. Big thanks to you.

Any ideas to the stopwords thing? It would be nice to avoid too common words in URLs (and, for, the, to...).
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3987

iquest instead of opening question markPosted: Tue Jul 10, 2007 6:37 pm    Post subject: Re: iquest instead of opening question mark

The topic is being discussed here, yes, it could be a bit nicer SEO wise, but this is the kind of thing that needs to be done very lightly, because, it's not a really huge enhancement.
I mean, title with too many common words are in all case not very interesting SEO wise.

_________________
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
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite
Page 1 of 1

Navigation Similar Topics

Jump to: