简体   繁体   中英

Removing index.php from codeigniter url on a wampserver envirement

I want to remove index.php from codeigniter url where i have activated rewrite_module in apache server (im using wampserver) and removed index.php from config variable $config['index_page'] = ''; and added this code to .htaccess file

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

However, it still not working

替换 config/config.php 文件中的这一行

$config['index_page'] = '';

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM