cakephp doesn't work url-rewriting on Ubuntu

后端 未结 3 2323
深忆病人
深忆病人 2021-02-20 03:00

all. This time I try cakephp, but I have got \"URL rewriting is not properly configured on your server. 1) Help me configure it 2) I don\'t / can\'t use URL rewriting\". I could

3条回答
  •  星月不相逢
    2021-02-20 03:42

    I had this problem as well. Turns out the .htaccess file was not getting copied alongside the cakePHP source. This is a common issue when using the cp command or not having hidden files visible in a file browser, unless you copy the top-level directory.

    Doing a direct copy of the file to my project folder fixed it for me without having to mess with my apache settings.

    cp ~/git/cakePHP/.htaccess ~/project/folder/
    

提交回复
热议问题