0
我正在用PHP應用程序中的htaccess。我想一些行爲是這樣的:htaccess/apache自動映射到php文件?
- 發送請求mydomain.com/login
- 有htaccess的攔截請求登錄併發送到index.php REF =登錄
但是我有嗎?所有設置和由於某種原因,它會自動發送mydomain.com/login請求直接login.php而不通過index.php。
我想也許這裏有一些干擾配置?僅供參考我的.htaccess看起來是這樣的:
Options +SymLinksIfOwnerMatch
RewriteEngine On
Options -Indexes
RewriteRule ^news$ /index.php?ref=news [NC,L]
RewriteRule ^login$ /index.php?ref=login [NC,L]
新聞URL重寫工作正常,並把它路由通過的index.php ...但我沒有news.php和懷疑,如果我這樣做會有問題那裏。
我也很抱歉,如果這個問題是在錯誤的地方,我不知道它是否屬於超級用戶或serverfault。