我的網址是:URL中使用的.htaccess有兩個以上的GET變量
http://example.com/demo/my_list.php?id=122&name=test files
Wan't改變成這樣:
http://example.com/demo/my_list.php/test files/122
目前我的htaccess是followes,
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]
但它不工作...
如何在php中用兩個以上的GET變量重寫url?
我在哪裏放置我的htaccess文件? 'demo'文件夾或根路徑中?
請任何一個可以幫助...
與空間的網址是無效的,你手動編寫的網址是什麼?! – Gntem
不是手動的,它是從db .. – Renjitha