Wordpress rewrite for lighttpd


/ Published in: lighttpd
Save to your folder(s)



Copy this code and paste it in your HTML
  1. url.rewrite-once = (
  2. "^/(.*)?/?files/$" => "index.php",
  3. "^/(.*)?/?files/(.*)" => "wp-content/blogs.php?file=$2",
  4. "^/(wp-.*)$" => "$1",
  5. "^/([_0-9a-zA-Z-]+/)?(wp-.*)" => "$2",
  6. "^/([_0-9a-zA-Z-]+/)?(.*\.php)$" => "$2",
  7. "." => "index.php"
  8. )

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.