Codeigniter - getting 404 Not Found error

前端 未结 9 1861
慢半拍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 02:50

    As you mentioned here, on localhost your code is working fine but when you moved it over live server it causes 404 error. There might be few cases you need to check:

    Step 1: Check mod_rewrite is enabled or not in your Apache configuration

    Step 2: Remove index.php in codeigniter config as @geordy suggested

    You can check it by

    
    

    in your root index.php. It ensures your all requests should go through this files else Codeigniter framework would not work properly.

提交回复
热议问题