PHP中的Htaccess问题

我该怎么改写
www.example.com/test.php?search=demo
至   www.example.com/test/?search=demo 使用htaccess     
已邀请:
把它放进你的
.htaccess
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([A-Za-z0-9]+)/?$ $1.php  
    
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*)$ $1.php
    

要回复问题请先登录注册