我的网址是:
http://example.com/demo/my_list.php?id=122&name=test files
不想将其更改为:
http://example.com/demo/my_list.php/test files/122
目前我的htaccess如下,
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)$ index.php?id=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)$ my_list.php?id=$1&name=$2 [L]
但它不工作......
如何用两个以上的 GET 变量重写 php 中的 url?
我在哪里放置了我的 htaccess 文件?在“演示”文件夹中还是在根路径中?
请任何人帮助...