WordPress.org

Support

Support » How-To and Troubleshooting » Lighttpd rewrites

Lighttpd rewrites

  • Hi,

    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"
    )

    Thanks
    James

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)
  • The topic ‘Lighttpd rewrites’ is closed to new replies.