2012-11-15 99 views
1

我正在使用亞馬遜EC2,bitnami LAMP AMI。 我最近添加了一個文件夾,所以我可以測試另一個網站,例如www.website.com/foldername/ 我做了chmod 777到該文件夾​​,所以我可以訪問它,但問題是我只能訪問位於主頁www.website.com/foldername/當我點擊任何其他網頁返回我404文件未找到

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> 

希望有人能幫助我。 :\

回答

0

這實際上是一個Apache的問題。抱歉! :) 我被建議不要使用bitnami生產,由於某種原因,它的apache禁用了一些東西,它對開發很有幫助。