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?
You are not logged in. Please login or register.
PunBB Forums → PunBB 1.2 discussion → [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?
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
it works fine on my test server.
lighttpd-1.4.18
it works fine on my test server.
lighttpd-1.4.18
With Pun 1.3 >rev 1200?
Nice to know
I'm running 1226.
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.
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?
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"
}
Hi everone!
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
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.
PunBB Forums → PunBB 1.2 discussion → [1.3] URL rewrite rule: lighttpd?
Powered by PunBB, supported by Informer Technologies, Inc.