Simple problem with mod_rewrite in the Fat Free Framework

前端 未结 7 2456
悲哀的现实
悲哀的现实 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

    I banged my head on this for 2 days. I debugged htaccess and php both. The actual problem is this :

    If you copied the .htaccess file from their fatfree-1.4.4 zip download, its not .htaccess its htaccess (. is missing) Just rename this file to .htaccess from htaccess and everything will work perfectly as its mentioned in the document !!!

    I am using this .htaccess works for non-root folders too

    Options -Indexes 
    IndexIgnore *    
    
    RewriteEngine On
    RewriteCond $1 !^(index\.php|images|main\.css|form\.css|favicon\.ico|robots\.txt|sitemap\.xml)
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]
    

提交回复
热议问题