0

lighttpdで同じことを説明する方法は?

私の.htaccess:

RewriteEngine On
RewriteBase /
RewriteCond $1 !^(index\.php|style\.css|image|image-small|robots\.txt|sitemap\.xml|favicon\.ico)
RewriteRule ^(.*) index.php [L]
4

1 に答える 1

0

未検証:

server.modules = (
    "mod_rewrite"
)

$HTTP["host"] == "web.com" {

    server.document-root = "/var/www/web.com/public_html/"

    url.rewrite-once = ( 
      "^(?!index\.php|style\.css|image|image-small|robots\.txt|sitemap\.xml|favicon\.ico)" => "$0"
      "^(.*)" => "index.php"
    )

}

詳細はこちら

于 2013-03-26T00:50:58.687 に答える