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  
 
   
Is this possible ?

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB mod Rewrite  » Advanced mod Rewrite
::  
Author Message
neboor



Joined: 16 Jan 2007
Posts: 5

Is this possible ?Posted: Tue May 08, 2007 10:22 pm    Post subject: Is this possible ?

Hi, i use a advanced mod rewrite and i love it, congratulations for the developers.

I wonder if there is a way to hide all extensions.

For example :

-http://www.yourforum.com/memberlist/

-http://www.yourforum.com/search/

-http://www.yourforum.com/vt-topic-title/

-http://www.youtforum.com/nickname-profile/

Is this possible ?

Thanx in advance!!
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14854

Is this possible ?Posted: Wed May 09, 2007 8:41 am    Post subject: Re: Is this possible ?

And welcome Very Happy

It's is of course possible, but requires some coding.

The main problem is this implies the use of absolute url for both links and images, since virtual folders would break relative ones.

The mod rewrite part is pretty easy, you can end up with forum-title-fxx/ by just editing the forum extension in phpbb_seo_class.php :

Code:
      $this->seo_ext = array('cat' => '.html',
         'forum' => '.html',


To :

Code:
      $this->seo_ext = array('cat' => '.html',
         'forum' => '/',


For example, and mod the .htaccess accordingly :
Code:
# PAGINATED FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)-([0-9]+)\.html$ /viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)\.html$ /viewforum.php?f=$1 [QSA,L,NC]

to :

Code:
# PAGINATED FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)-([0-9]+)/$ /viewforum.php?f=$1&start=$2 [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-f([0-9]+)/$ /viewforum.php?f=$1 [QSA,L,NC]


But as said, this implies absolute linking, which is a bit more tricky.

It's not impossible though, that at one time we start releasing solutions for this Wink

It will be a feature of the phpBB3 mod rewrite Wink

++

_________________
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
hbbt



Joined: 05 May 2007
Posts: 30

Is this possible ?Posted: Sun May 13, 2007 6:24 pm    Post subject: Re: Is this possible ?

Do you plan to have all of the same rewrites and mods for phpbb3?
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 14854

Is this possible ?Posted: Mon May 14, 2007 7:57 am    Post subject: Re: Is this possible ?

dcz wrote:


It will be a feature of the phpBB3 mod rewrite Wink

++


Wink

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

Navigation

Jump to: