开发者

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 开发者_StackOverflow社区= ( "^/code/(.*)$" => "/pub/index.php?code=$1" )


I solved this by changing it to

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜