CodeIgniter - How to hide index.php from the URL

前端 未结 4 1095
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 02:09

This is what my .htaccess looks like. The .htaccess is sitting in /www/scripts directory which is the parent of codeigniter\'s s

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-19 03:07

    use this:

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

提交回复
热议问题