2011-11-08 3 views
1

나는 문제를 얻고있다. 우분투를 사용하고 있으며 모든 파일은 /var/www에 있습니다. 이뚱뚱한 자유로운기구 URL URL

root entered 
을 반향한다, 즉

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

의 index.php의 내용은,

내가 http://127.0.0.1/F3Apps/로 URL을 설정하고있어
<?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/about으로 설정하면 다음을 얻게됩니다. enter image description here

,363,210

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

"fat free framework"이라는 것이 있습니다. 웃음! –

답변

1

당신의 .htaccess 확인은 문제가있다. 또는 우리에게 맞는 콘텐츠를 게시하십시오.

+0

좋아, 내가 편집 – Noor

+0

에 게시 할 예정입니다. 이미 수정 사항을 게시했는데,보세요. – Noor