0
RewriteEngine on
RewriteBase/
RewriteRule ^(.*)$ index.php?page=$1
我的.htaccess文件出現錯誤。在我的索引頁上,我有一個PHP來檢查$ _GET ['page']是什麼,當我輸入domain.com/home
時,它返回index.php
。使用mod_rewrite快速修復.htaccess
我想它,當我在domain.com/home
謝謝林先生。像魅力一樣工作 –