CodeIgniter - How to hide index.php from the URL

前端 未结 4 1092
伪装坚强ぢ
伪装坚强ぢ 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:06

    here is the solution simply drop in root.

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule .* index.php/$0 [PT,L] 

提交回复
热议问题