나는 문제를 얻고있다. 우분투를 사용하고 있으며 모든 파일은 /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으로 설정하면 다음을 얻게됩니다.
,363,210htaccess로 내용은 (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>
"fat free framework"이라는 것이 있습니다. 웃음! –