Simple problem with mod_rewrite in the Fat Free Framework

前端 未结 7 2471
悲哀的现实
悲哀的现实 2020-12-18 02:42

I am trying to setup and learn the Fat Free Framework for PHP. http://fatfree.sourceforge.net/

It\'s is fairly simple to setup and I am running it on my machine usi

7条回答
  •  清酒与你
    2020-12-18 02:48

    This response may be too late for you but I had the same problem yesterday.

    It sounds like the problem is apache is not rewriting urls. I had the same issue when trying to get F3 running on OSX 10.7 - the 'GET /' route would work but not the 'GET /foo' as the F3 index.php was in a subdir for localhost/F3. My solution was to:

    1. ensure the .htaccess was set as you have.
    2. ensure mod_rewrite.so was enabled in apache's httpd.conf
    3. ensure that you set AllowOverride All (mine was None) for your web directory in httpd.conf (further down the file).
    4. restart apache

    Without step 3, apache will ignore any rewrite directives. I discovered this by changing the permalinks on a local wordpress install and they failed indicating the problem was the apache config, not F3.

提交回复
热议问题