我正在使用亚马逊 EC2,bitnami LAMP AMI。我最近添加了一个文件夹,这样我就可以测试另一个网站,例如 www.website.com/foldername/ 我对那个文件夹做了 chmod 777,所以我可以访问它,但问题是我只能访问位于 www 的主页。 website.com/foldername/ 当我单击任何其他页面时,它会返回我
Not Found
The requested URL /foldername/landing was not found on this server.
据我所知,该模板适用于其他不使用亚马逊的人,以下是我的 htaccess
SetEnv APPLICATION_ENV development
Options -Indexes
Options +FollowSymLinks
DirectoryIndex index.php index.html
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)\?*$ index.php [L,QSA]
#remove www.
#RewriteCond %{HTTPS} off
#RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
#RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
#RewriteRule ^(.*\.(png|jpg|jpeg|gif))$ index.php?controller=minify&action=index&file_path=$1&ext=$2 [L,NC]
#RewriteRule ^(.*\.(css|js))$ index.php?controller=minify&action=jscss&file_path=$1&ext=$2 [L,NC]
</IfModule>
ErrorDocument 404 index.php
<ifModule mod_expires.c>
ExpiresActive On
ExpiresDefault "access plus 1 seconds"
ExpiresByType application/x-javascript "access plus 216000 seconds"
</ifModule>
<FilesMatch "\.(htaccess|htpasswd|ini|log|sh|inc|bak|cache)$">
Order Allow,Deny
Deny from all
</FilesMatch>
希望有人可以在这里帮助我。:\