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  
 
   
Lighttpd AND phpBB URL Rewrite?

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



Joined: 05 Aug 2008
Posts: 3

Lighttpd AND phpBB URL Rewrite?Posted: Tue Aug 05, 2008 12:12 pm    Post subject: Lighttpd AND phpBB URL Rewrite?

Hello,

My forums are running on the Lighttpd webserver (instead of Apache). Is it possible to optimize URLs?

If yes, how to do it? Are there some special premodded phpBB3 files for Lighttpd?

Thanks for your help.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15131

Lighttpd AND phpBB URL Rewrite?Posted: Wed Aug 06, 2008 8:19 am    Post subject: Re: Lighttpd AND phpBB URL Rewrite?

Here an article from someone who did install an old version of our phpBB2 mod rewrite on Lighttpd : http://www.cyberciti.biz/tips/lighttpd-phpbb-seo-mod_rewrite-rules.html

It should not be too hard to adapt it for the new rewriterules.

++

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



Joined: 05 Aug 2008
Posts: 3

Lighttpd AND phpBB URL Rewrite?Posted: Thu Aug 07, 2008 8:28 pm    Post subject: Re: Lighttpd AND phpBB URL Rewrite?

So, I have managed to get Simple mod rewrite to work with Lighttpd Smile

I have used these rewrite rules:

Code:
   url.rewrite = (
   "^/forum([0-9]+)\.html$" => "/viewforum.php?f=$1",
   "^/forum([0-9]+)-([0-9]+)\.html$" => "/viewforum.php?f=$1&start=$3",
   "^/forum([0-9]+)/topic([0-9]+)-([0-9]+)\.html$" => "/viewtopic.php?f=$1&t=$2&start=$4",
   "^/topic([0-9]+)\.html$" => "/viewtopic.php?f=$2&t=$1",
   "^/post([0-9]+)\.html$" => "/viewtopic.php?p=$1",
   "^.+-vf([0-9]+)\.html$" => "/viewforum.php?f=$1",
   "^.+-vt([0-9]+)-([0-9]+)\.html$" => "/viewtopic.php?t=$1&start=$2",
   "^.+-vt([0-9]+)\.html$" => "/viewtopic.php?t=$1",
   "^.+-vt([0-9]+)\.html\?highlight=.*" => "/viewtopic.php?t=$1&highlight=$2",
   "^/group([0-9]+)-([0-9]+)\.html$" => "/memberlist.php?mode=group&g=$1&start=$3",
   "^/group([0-9]+)\.html$" => "/memberlist.php?mode=group&g=$1",
   "^/the-team\.html$" => "/memberlist.php?mode=leaders",
   "^/member([0-9]+)\.html$" => "/memberlist.php?mode=viewprofile&u=$1",
   "^/unanswered\.html$" => "/search.php?search_id=unanswered&sr=topics",
   "^/unanswered-([0-9]+)\.html$" => "/search.php?search_id=unanswered&start=$1&sr=topics",
   "^/newposts\.html$" => "/search.php?search_id=newposts",
   "^/active-topics\.html$" => "/search.php?search_id=active_topics",
   "^/active-topics-([0-9]+)\.html$" => "/search.php?search_id=active_topics&start=$1",
   "^/member([0-9]+)-topics\.html$" => "/search.php?search_id=egosearch",
   "^/member([0-9]+)-posts\.html$" => "/search.php?author_id=$1&sr=posts",
   "^/announces/topic([0-9]+)-([0-9]+)\.html$" => "/viewtopic.php?t=$1&start=$3"
   )


You can check the result at my Spore Forums.
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 3758

Lighttpd AND phpBB URL Rewrite?Posted: Mon Aug 11, 2008 9:03 am    Post subject: Re: Lighttpd AND phpBB URL Rewrite?

In theory, since I do not have any Lighttpd install, you should replace :

Code:
.+-vt


with :

Code:
[a-zA-Z0-9_-]*-t


and :

Code:
.+-vf


with :

Code:
[a-zA-Z0-9_-]*-f


But this is for the advanced mode, rules like :

Code:
   "^/forum([0-9]+)/topic([0-9]+)-([0-9]+)\.html$" => "/viewtopic.php?f=$1&t=$2&start=$4",


suggest the simple mode.
And should by the way rather look like :
Code:
   "^/forum([0-9]+)/topic([0-9]+)-([0-9]+)\.html$" => "/viewtopic.php?f=$1&t=$2&start=$3",


start is the third and not the fourth param.

The same kind of var number mismatch occurs in :
Code:
   "^/topic([0-9]+)\.html$" => "/viewtopic.php?f=$2&t=$1",

which should be :
Code:
   "^/topic([0-9]+)\.html$" => "/viewtopic.php?t=$1",


The forum you linked does not seem to have url rewriting activated right now, but you look pretty close to a working solution with this set of rules.

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



Joined: 05 Aug 2008
Posts: 3

Lighttpd AND phpBB URL Rewrite?Posted: Mon Aug 11, 2008 4:20 pm    Post subject: Re: Lighttpd AND phpBB URL Rewrite?

I have activated the URL rewriting in ACP now, lol.

Now it should work - http://sporeforums.com/

And thanks for tips Wink
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15131

Lighttpd AND phpBB URL Rewrite?Posted: Wed Aug 13, 2008 1:14 pm    Post subject: Re: Lighttpd AND phpBB URL Rewrite?

Rather looks like you switched to vb :

Quote:
Powered by vBulletin® Version 3.7.2


Why doing so when phpBB has become such a killer soft ?

++

_________________
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
Page 1 of 1

Navigation Similar Topics

Jump to: