Why codeIgniter show the requested URL was not found on this server?

前端 未结 3 1804
野性不改
野性不改 2020-12-21 04:58

I want to ask. First of all, I will tell that I\'ve develop an application use codeIgniter on my windows dekstop. And it clear and run completely.

But, after I move

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-21 05:35

    First of all enable mod_rewrite then restart apache2 using following commands:

    sudo a2enmod rewrite
    sudo service apache2 restart
    

    then open apache conf file using command:

    sudo gedit /etc/apache2/apache2.conf
    

    uncomment below line if it is commented

    AccessFileName .htaccess
    

    then find these lines in apache2.conf

    
    Options Indexes FollowSymLinks
    AllowOverride None
    Require all granted
    

    here change the line AllowOverride None to AllowOverride All and save this file.

    Now, your issue is resolved.

提交回复
热议问题