想要重写所有的php页面为htm,用户可以通过.htm?key=val的方式访问,不能通过.php?key=val的方式访问,怎么弄?我动不动就设置成循环了,总是弄不好
回复内容: 想要重写所有的php页面为htm,用户可以通过.htm?key=val的方式访问,不能通过.php?key=val的方式访问,怎么弄?我动不动就设置成循环了,总是弄不好
rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_uri} test.htm [nc] rewriterule ^test.htm$ test.php [qsa,pt,l]
