Codeigniter - getting 404 Not Found error

前端 未结 9 1869
慢半拍i
慢半拍i 2021-02-20 02:26

We have two hosting packages at godaddy. Our live website is working fine using following .htaccess file. Website is accessible without using index.php in url.

R         


        
9条回答
  •  清酒与你
    2021-02-20 03:01

    You can use this. This works for me in godaddy hosting.

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

提交回复
热议问题