Codeigniter URL not working without index.php

后端 未结 3 1146
没有蜡笔的小新
没有蜡笔的小新 2021-01-20 01:03

I\'ve just set up a new webiste http://www.reviewongadgets.com

But there is a problem with URL rendering

When I put an URL as below it\'s not working and giv

3条回答
  •  执念已碎
    2021-01-20 02:00

    The most common solution to this problem is usually the missing question mark ? after index.php in .htaccess, so

    RewriteRule ^(.*)$ index.php/$1 [L]
    

    should be

    RewriteRule ^(.*)$ index.php?/$1 [L]
    

    E.G. on my Windows XAMPP, I do not need the "?", but in a Linux hosting environment it is usually required.

提交回复
热议问题