0
我想在我的項目任何方式刪除index.php文件,而無需使用htaccess文件中笨
我剛剛打開CodeIgniter的文件夾中htdocs
並粘貼此代碼的URL刪除index.php
。
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule .* index.php/$0 [PT,L]
#RewriteRule ^(.*)$ index.php/$0 [PT,L]
RewriteRule ^(.*)$ index.php/$0 [QSA,L]
#RewriteRule ^(.*)$ index.php?/$1 [L]
#RewriteRule ^(.*)$ index.php/$1 [L]
沒有,我們不要 –
刪除這是不是一個笨的功能,它是一個Web服務器功能。它必須通過.htaccess文件完成。 – Joe