Project

General

Profile

Actions

Bug #775

closed

mod_rewrite code from apache to lighttpd not working

Added by Anonymous over 18 years ago. Updated about 16 years ago.

Status:
Invalid
Priority:
Urgent
Category:
mod_rewrite
Target version:
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

Actions #1

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 #2

Updated by stbuehler about 16 years ago

  • Status changed from Fixed to Invalid
Actions

Also available in: Atom