Hi,
I am trying to get "Nice URL's" working with config option 1.
When I set $conf['userewrite'] = '1'; and setup lighttpd as follows, I get 404 page errors:
Relavant part of lighttpd.conf is:
--------------------------------------------------------
server.document-root = "/usr/local/www"
var.dokudir = server.document-root + "/dokuwiki"
# rewrites for dokuwiki
$HTTP["url"] =~ "^" + var.dokudir { index-file.names = ("doku.php") }
url.rewrite = (
"^" + var.dokudir + "/lib/.*$" => "$0",
"^" + var.dokudir + "/_media/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1&$2",
"^" + var.dokudir + "/_media/(.*)$" => var.dokudir + "/lib/exe/fetch.php?media=$1",
"^" + var.dokudir + "/_detail/(.*)?\?(.*)$" => var.dokudir + "/lib/exe/detail.php?media=$1&$2",
"^" + var.dokudir + "/_detail/(.*)?$" => var.dokudir + "/lib/exe/detail.php?media=$1",
"^" + var.dokudir + "/_export/([^/]+)/(.*)\?(.*)$" => var.dokudir + "/doku.php?do=export_$1&id=$2&$3",
"^" + var.dokudir + "/_export/([^/]+)/(.*)" => var.dokudir + "/doku.php?do=export_$1&id=$2",
"^" + var.dokudir + "/doku.php.*" => "$0",
"^" + var.dokudir + "/feed.php.*" => "$0",
"^" + var.dokudir + "/(.*)\?(.*)" => var.dokudir + "/doku.php?id=$1&$2",
"^" + var.dokudir + "/(.*)" => var.dokudir + "/doku.php?id=$1"
)
url.rewrite-once = ( "^/dokuwiki/(data|conf|bin|inc)/+.*" => "/nonexistentfolder" )
##
## both rewrite/redirect support back reference to regex conditional using %n
##
#$HTTP["host"] =~ "^www\.(.*)" {
# url.redirect = ( "^/(.*)" => "http://%1/$1" )
#}
$HTTP["url"] =~ "^/dokuwiki" { server.follow-symlink = "enable" }
$HTTP["url"] =~ "/(\.|_)ht" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^" + var.dokudir + "/(bin|data|inc|conf)/+.*" { url.access-deny = ( "" ) }
alias.url += ("/dokuwiki" => "/usr/local/www//dokuwiki/")
--------------------------------------------------------
My dokuwiki top level directory is: /usr/local/www/dokuwiki
I have the rewrite php module enabled.
Thanks for any help.
EDIT: I did remember that I had to put in a full path for doku.php before the site would index properly from just the site address.
i.e
--------------------------------------------------------
index-file.names += (
"dokuwiki/doku.php", "doku.php", "index.xhtml", "index.html", "index.htm", "default.htm",
"index.php"
)
--------------------------------------------------------