[wp-hackers] needs testing and feedback: small patch
for nicepermalinks on lighttpd
Mark Jaquith
mark.wordpress at txfx.net
Wed Mar 16 14:29:17 GMT 2005
Mark R. Andrachek, Jr. wrote:
>I tried out the suggested patch, as I am not in favor of the 404
>method (I also use gallery2 with permalinks, and would like those to
>be able to work as well -- next on my list).
>
>The changes seem to work fine for me (webmages.com), I also added
>rewrite rules for:
>
>url.rewrite = ( "^/page/(.+)$" => "/index.php/page/$1" )
>url.rewrite = ( "^/comments/(.+)$" => "/index.php/comments/$1" )
>url.rewrite = ( "^/search/(.+)$" => "/index.php/search/$1" )
>url.rewrite = ( "^/feed/(.+)$" => "/index.php/feed/$1" )
>
I'm not familiar with this style of rewrite, but it seems to me that you
could do this and consolidate it into one:
url.rewrite = ( "^/(page|comments|search|feed)/(.+)$" =>
"/index.php/$1/$2" )
More information about the wp-hackers
mailing list