Lighttpd rewrites (2 posts)

  1. nytrokiss
    Posted 7 years ago #


    I am running a wordpress blog on lighttpd and have run into a few issues with the wordpress rewrite code. I have posted it below. I need to be able to the server serve static HTML files in addition to the blog. (e.g I need to authenticate with yahoo site explorer etc..) How would I do this. I am not so good at regular expressions so I am unable to edit this and I am wondering if someone can help.

    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"


  2. daveabrahams
    Posted 7 years ago #

    Here is the very best solution I've ever seen for this problem, and it avoids rewrite rules altogether. In fact, I wish the wordpress devs would document that and perhaps inject a 404 template whenever themes don't supply one.

Topic Closed

This topic has been closed to new replies.

About this Topic