0
나는 Laravel 4에 대한 테스트 프로젝트를 갖고 있으며, 나는 아직이 프로젝트에 익숙하지 않다. 나는 여전히 wamp (localhost)에서 작업 중이다. 나는 laravel이 wamp (..wamp/www)의 루트 경로에 설치되어 있지만 이미 다른 폴더 (..wamp/www/testproject)를 만들고 거기에 laravel을 설치하려고하면 이미 작동하게 만들었습니다. localhost/testproject/laravel/public을 제외하고 더 이상 작동하지 않습니다.Laravel 4 하위 폴더
는 요약 :
이--The working one---
C:/wamp/www/laravel = the folder where laravel was installed
localhost/laravel/public = working, "You have arrived" page
localhost/laravel/about = working about.php route
--The one with errors--
C:/wamp/www/testproject/laravel = the folder where laravel was installed
localhost/testproject/laravel/public = working, "You have arrived" page
localhost/testproject/laravel/about = not working about.php route
localhost/testproject/laravel/index.php/about = working, and I don;t know why
사람이 나를 도와 드릴까요? "about.php"페이지가 하위 폴더에서 작동하지 않는 이유는 무엇입니까? :(
편집 : htaccess로 파일 내용 여기
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule^index.php [L]
</IfModule>
경로에 대한 스크린 샷입니다 ..
.htaccess
에RewriteEngine On
아래RewriteBase /laravel/public
추가 당신이 어딘가에 htaccess로 파일을 가지고 있습니까 루트 폴더 또는/public/폴더에 있습니까? – JofryHS예, 오류가있는 사람과 작업자 모두에게 무엇을해야합니까? – Codemunkeee
.htaccess의 내용은 무엇입니까? – JofryHS