开发者

Simple Lighttpd Rewrite Rule not working

开发者 https://www.devze.com 2023-03-30 21:38 出处:网络
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 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 开发者_StackOverflow社区= ( "^/code/(.*)$" => "/pub/index.php?code=$1" )


I solved this by changing it to

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

精彩评论

暂无评论...
验证码 换一张
取 消