Actions
Bug #775
closedmod_rewrite code from apache to lighttpd not working
ASK QUESTIONS IN Forums:
Description
Options All -Indexes ErrorDocument 404 /index.php?error RewriteEngine On RewriteRule ^category/([0-9]+).html/?$ index.php?category=$1 [L] RewriteRule ^news/([0-9]+).html/?$ index.php?news=$1 [L] RewriteRule ^print/([0-9]+).html/?$ print_version.php?id=$1 [L] RewriteRule ^comments/([0-9]+).html/?$ index.php?comments=$1 [L] RewriteRule ^author/([^<]+).html/?$ index.php?author=$1 [L] RewriteRule ^([^<]+).html/?$ index.php?category_name=$1 [L] RewriteRule ^([^<]+).htm/?$ index.php?text=''&news=$1 [L] RewriteRule ^([^.]+)/?$ index.php?category_name=$1 [L]
i put this code in lighttpd like this
#!lighttpdconf url.rewrite = ( "^category/([0-9]+).html"=>"/index.php?category=$1", "^news/([0-9]+).html"=>"/index.php?news=$1", "^print/([0-9]+).html"=>"/print_version.php?id=$1", "^comments/([0-9]+).html"=>"/index.php?comments=$1", "^author/([^<]+).html"=>"/index.php?author=$1", "^([^<]+).html"=>"/index.php?category_name=$1", "^([^<]+).htm"=>"/index.php?text=''&news=$1" )
but not working..
Anyone help me ?
-- iguler
Updated by moo over 17 years ago
- Status changed from New to Fixed
- Resolution set to invalid
ticket system is not a place to ask questions. you have to use "^/category/..." or "^/mydirectory/category/...", ask in forum pls.
Actions
Also available in: Atom