[英]mod_rewrite in httpd.conf not working (but does in .htaccess)
[英]Moving mod_rewrite from httpd.conf to .htaccess doesn't work
我認為這可能相對簡單。 我有一個重寫規則,該規則基本上從URL中刪除了.php,但它不是標准的URL。 它在我的httpd.conf文件中可以正常工作,但是如果我移到.htaccess則不能:
RewriteEngine On
RewriteRule ^/index/(.*)/(.*)$ /index.php/$1/$2 [QSA]
現在,我知道在.htaccess中,您必須刪除引用當前目錄的部分,但是我還沒有運氣,非常歡迎任何想法/建議/解決方案。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.