0
我有这个在我的htaccess文件:htaccess的重写不允许PHP GET
RewriteCond %{REQUEST_URI} ^/customer/ [OR]
RewriteCond %{HTTP_HOST} ^my\.domain\.com$ [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI}.php -f
RewriteRule ^(.*)$ /customer/index.php?p=$1.php [L]
其重写像domain.com/contacts/viewcontact.php
事情要domain.com/contacts/viewcontact
,当我去到域
domain.com/contacts/viewcontact?seq=123
然后在PHP echo $_GET["seq"];
它什么也没有显示。
我也使用
domain.com/contacts/viewcontact&seq=123
试过,但是这表明没有发现
但为什么'/index.php?p=viewcontact.php'而不是'/ viewcontact.php'? – anubhava