On 1/6/2011 9:11 AM, Artem Skvira wrote:
I had some minor success with following configuration:
$HTTP["host"] =~ "myhost\.(local|localhost)" {
$HTTP["url"] =~ "^/blog/" {
server.document-root = "/home/user/dev/habari-0.6.6"
dir-listing.activate = "enable"
url.rewrite-once = (
"^/blog/(?!scripts/|3rdparty/|system/|doc/|user/(?:themes/|
files/|plugins/|locales/|sites/))[^?]*(\?(.*))?" => "/index.php/$1"
)
alias.url += (
"/blog" => "/home/user/dev/habari-0.6.6"
)
}
}
However in this configuration only the front page works - none of the
other links, like login/comments etc work.
Did you include a rule that rewrites requests for non-existant files to
the index.php? It seems like that rule is missing.
The url.rewrite-once rule you have only rewrites things that are in one
of the named directories (Habari system directories that shouldn't be
served directly) to the index. It seems like that's all that's going on
here.
Owen
--
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/habari-users