Topic: [1.3] URL rewrite rule: lighttpd?

I wander if anyone (on the dev team or not) did some test with the 1.3 pre-alpha and Lighttpd? Especially, tried to make to new rewrite engine (done in PHP) work with Lighttpd?

Re: [1.3] URL rewrite rule: lighttpd?

Not on the dev team, but if you're looking to test it out, the setup should be similar to Wordpress and lighttpd
http://www.cyberciti.biz/tips/lighttpd- … -urls.html

Re: [1.3] URL rewrite rule: lighttpd?

it works fine on my test server.

lighttpd-1.4.18

Post hoc ergo propter hoc

Re: [1.3] URL rewrite rule: lighttpd?

Tjalve wrote:

it works fine on my test server.

lighttpd-1.4.18

With Pun 1.3 >rev 1200?

Nice to know smile

Re: [1.3] URL rewrite rule: lighttpd?

I'm running 1226.

Post hoc ergo propter hoc

Re: [1.3] URL rewrite rule: lighttpd?

I have been trying to get rewrite to work with lighttpd and PunBB 1.3, but haven't been successful. Can one of you that has got it working please share of your wisdom?

For WordPress I'm using mod_magnet and a lua script, but that didn't seem to work with PunBB.

7

Re: [1.3] URL rewrite rule: lighttpd?

Search the Fluxbb wiki. There is information on there regarding Lighttpd and rewrite.

Btw Mods, why is this topic still in the 1.2 section?

Re: [1.3] URL rewrite rule: lighttpd?

Thank you very much! It seems my misfortune was only due to a small mistake. I hadn't included the subfolder in the error-handler:

        $HTTP["url"] =~ "^/forum/" {
                server.error-handler-404 = "/rewrite.php"
        }

9

Re: [1.3] URL rewrite rule: lighttpd?

Glad that sorted it. smile

10 (edited by Jyri 2009-04-27 08:11)

Re: [1.3] URL rewrite rule: lighttpd?

Hi everone!

alsoeren wrote:

Thank you very much! It seems my misfortune was only due to a small mistake. I hadn't included the subfolder in the error-handler:

        $HTTP["url"] =~ "^/forum/" {
                server.error-handler-404 = "/rewrite.php"
        }

This isn't 100% correct yet; it should be

server.error-handler-404 = "/forum/rewrite.php"

if your forum is located at /forum.

As a conclusion for all of you looking for instructions to have clean urls in punbb 1.3 with lighttpd:

Assuming your forum installation is in a folder named "punbb" (i.e. http://www.yourdomain.com/punbb/):

- Add this to the appropriate section of your lighttpd.conf file:

$HTTP["url"] =~ "^/punbb/" {
    server.error-handler-404 = "/punbb/rewrite.php"
}

Assuming your forum resides at the root of your site (i.e. http://www.yourdomain.com/):

- Add this to the appropriate section of your lighttpd.conf file:

server.error-handler-404 = "/rewrite.php"

- Restart lighttpd

- Go to the admin panel of your punBB installation, go to Settings and choose which ever URL scheme you like

That's it! The rewrite.php script takes care of the rest.

- Jyri

11 (edited by MattF 2009-04-27 10:14)

Re: [1.3] URL rewrite rule: lighttpd?

Assuming your forum resides at the root of your site (i.e. http://example.org/):

- Add this to the appropriate section of your lighttpd.conf file:

server.error-handler-404 = "/rewrite.php"

I'll update the Flux wiki entry for that bit. The [dir] bit is obviously unneeded if it's at web root. It must have been an overzealous copy/paste on that bit. big_smile