webconsul

the best webconsul(ting)

WordPress Permalinks mit lighttpd realisieren

Sie sind hier: Startseite » WordPress Permalinks mit lighttpd realisieren

Um Permalinks eines WordPress-Blogs in lighttpd umzusetzen braucht man folgende Regeln:

Einfach eine Datei /etc/lighttpd/wp-rewrite.conf anlegen und folgendes eintragen:

url.rewrite-once = (
"^" + wpdir + "(wp-.+).*/?" => "$0",
"^" + wpdir + "(sitemap.xml)" => "$0",
"^" + wpdir + "(xmlrpc.php)" => "$0",
"^" + wpdir + "keyword/([A-Za-z_0-9-])/?$" => wpdir + "index.php?keyword=$1",
"^" + wpdir + "(.+)/?$" => wpdir + "index.php/$1"
)

und in der /etc/lighttpd/lighttpd.conf beim jeweiligen vhost dann entsprechend:

$HTTP["host"] =~ "webconsul\.de" {
var.wpdir = "/"
include "wp-rewrite.conf"
}

Die Infos dazu gibts auch bei: Hinrik und Sudhaker.

Ein Kommentar zu “WordPress Permalinks mit lighttpd realisieren”

Hinterlasse eine Antwort