0
我使用htaccess傳遞2個變量。主題&品牌從htaccess中識別變量
RewriteRule ^([A-Za-z0-9_-]+)/?$ ?subject=$1 [NC,L]
RewriteRule ^([A-Za-z0-9_-]+)/?$ ?brand=$1 [NC,L]
在我的函數文件我使用頁面檢測,包括各自的模塊。
if (!empty($_REQUEST['subject']))
{
include_once("templates/pages.php");
}
else if (!empty($_REQUEST['brand']))
{
include_once("templates/brands_content.php");
}
問題: 我無法檢測到的變量....它總是加載「模板/ pages.php」 任何人都可以引導我解決這個問題吧。
感謝