1
我無法從鏈接domain.com/profile/nick獲取$ _GET ['p']的值。我正在使用htaccess從漂亮的網址獲取參數。我可以知道最新的問題嗎?無法從漂亮的網址獲取url參數值
的.htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule ^profile/([A-Za-z0-9-\+]+)*$ ./profile.php?p=$1 [L]