tp5 隱藏入口文件index.php

下面是Apache的配置過程,能夠參考下: 一、httpd.conf配置文件中加載了mod_rewrite.so模塊,去掉前面的 " # ";php 二、AllowOverride None 將None改成 Allhtml 三、在應用入口文件同級目錄.htaccess文件中,將內容RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L] 修改成 RewriteRule
相關文章
相關標籤/搜索