Lee Armstrong
Lee Armstrong

Reputation: 11452

Simple Lighttpd Rewrite Rule not working

I have the following URL

http://www.website.com/pub/?code=USERINPUT

I would like it to appear as

http://www.website.com/pub/code/USERINPUT

I set up the following in my lighttpd.conf and I just get 404'ed every time!

url.rewrite = ( "^/code/(.*)$" => "/pub/index.php?code=$1" )

Upvotes: 1

Views: 746

Answers (1)

Lee Armstrong
Lee Armstrong

Reputation: 11452

I solved this by changing it to

url.rewrite = ( "^/pub/code/(.*)$" => "/pub/index.php?code=$1" )

Upvotes: 1

Related Questions