Remove index.php from codeigniter in subfolder

前端 未结 1 1305
遥遥无期
遥遥无期 2021-01-20 11:04

My codeigniter is installed in admin_new folder on hostinger and path of installed codeigniter is public_html/vishwa/admin_new/ and i am trying to remove in

1条回答
  •  清歌不尽
    2021-01-20 11:44

    try this

    RewriteEngine on
    RewriteCond $1 !^(index\.php|public|\.txt)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?$1
    

    0 讨论(0)
提交回复
热议问题