Hi everybody
I need some help with 2 rewrite rules, well only one actually.
Here's what I'm trying:
url.rewrite-once = (
"^/daily/([a-z_0-9]+).html$" => "/daily.php?day=$1",
"^/weekly/([a-z_0-9]+)-([photos|websites|web\-stats|news]).html" => "/weekly.php?month=$1&category=$2")
The first rule need to work for these example URLs:
http://lightttpd/daily/monday.html
http://lightttpd/daily/monday5.html
http://lightttpd/daily/day_of_monday_15.html
And it seems to work, however the second rule is giving me problems by not matching these urls:
http://lightttpd/weekly/week52-photos.html
http://lightttpd/weekly/the_week_of_52-web-stats.html
http://lightttpd/weekly/the_week_of_52-news.html
I need some help with 2 rewrite rules, well only one actually.
Here's what I'm trying:
url.rewrite-once = (
"^/daily/([a-z_0-9]+).html$" => "/daily.php?day=$1",
"^/weekly/([a-z_0-9]+)-([photos|websites|web\-stats|news]).html" => "/weekly.php?month=$1&category=$2")
The first rule need to work for these example URLs:
http://lightttpd/daily/monday.html
http://lightttpd/daily/monday5.html
http://lightttpd/daily/day_of_monday_15.html
And it seems to work, however the second rule is giving me problems by not matching these urls:
http://lightttpd/weekly/week52-photos.html
http://lightttpd/weekly/the_week_of_52-web-stats.html
http://lightttpd/weekly/the_week_of_52-news.html