嗨成功取出了index.php文件在我的網址,但該[controller folder]/[function]/[argument]
不工作了htaccess的笨:`[控制器]/[功能]/[參數]`不工作
這是我htacess
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
我也改變了這個
$config['uri_protocol'] = 'REQUEST_URI';
$config['index_page'] = '';
這是我的配置[ 'BASE_URL']
$base = "http://".$_SERVER['HTTP_HOST'];
$base .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$config['base_url'] = $base;
,我已經改變了我的http.conf Apache中 的AllowOverride所有
我也重新啓動我的XAMPP已經,CAN誰能幫我爲什麼[controller folder]/[function]/[argument]
不工作?
您可以按照[鏈接](https://stackoverflow.com/questions/46608887/codeigniter-3-1-6-how-to-remove -index-php-from-url/46615615#46615615)到相同的QA。 – Harish