« bookmarklet のソースを見る | メイン | SafariStand »
mod_rewrite で、Query String を扱うには?
RewriteRule ^p/(.*)$ showpage.php?p=$1&%{QUERY_STRING} [L]
これで、たとえば、
p/profile?company=hayashi&name=jiro
が
showpage.php?p=profile&company=hayashi&name=jiro
に rewrite される。
参考:mod_rewrite: Rewriting URLs With Query Strings
2007年02月21日 22:06 | Permanent Link
Trackback URL: http://groundwalker.com/mt/gwtb.cgi/139