2011-11-08 65 views
1

我遇到了问题。我正在使用Ubuntu,我的所有文件都位于/var/www。它包含以下文件夹:Fat Free Framework URL错误

fatfree:contains the fat free framwork 
F3Apps: contains index.php, .htaccess(contents shown below) 

的index.php文件的内容是

<?php 
require '../fatfree/lib/base.php'; 
F3::route('GET /',function() 
{ 
    echo "root entered"; 
}); 

F3::route('GET /about',function() 
{ 
    echo "about entered"; 
}); 

F3::run(); 
?> 

当我在设置URL为http://127.0.0.1/F3Apps/,这是确定的,即它是呼应

root entered 

但是,当我将URL设置为http://127.0.0.1/F3Apps/about时,出现以下错误: enter image description here

的内容的.htaccess如下所示(本的.htaccess是在文件F3Apps):

# Enable rewrite engine and route requests to framework 
RewriteEngine On 
RewriteBase /F3Apps 
RewriteCond %{REQUEST_FILENAME} !-l 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule .* index.php [L,QSA] 

# Disable ETags 
<IfModule mod_header.c> 
    Header Unset ETag 
    FileETag none 
</IfModule> 

# Default expires header if none specified (stay in browser cache for 7 days) 
<IfModule mod_expires.c> 
    ExpiresActive On 
    ExpiresDefault A604800 
</IfModule> 

DocumentRoot "/var/www/html" 
<Directory "/var/www/html"> 
    Options -Indexes FollowSymLinks Includes 
    AllowOverride All 
    Order allow,deny 
    Allow from All 
</Directory> 
+0

有什么叫“无脂架构”?大声笑! –

回答

1

检查.htaccess,问题是存在的。或者发布它的内容:)

+0

好吧,我在发布编辑 – Noor

+0

我已经发布它与编辑,你可以看看 – Noor

相关问题