2014-11-07 10 views
0

wrapserver에서 작곡가와 함께 Laravel을 설치했습니다.WAMP와 함께 Laravel 설치 - 라우터가 작동하지 않음

내 디렉토리는 다음과 같습니다 C :/WAMP/www /에서 laravel/firstProject

공공 파일 : C : SO/WAMP/www /에서 laravel/firstProject/공공

내가하려고 할 때 go localhost/laravel/firstProject/public/projects

이 오류가 발생합니다 : "요청한 URL /larvel/index.php를이 서버에서 찾을 수 없습니다."

내가 입력 할 때 내가 액세스 할 수 있습니다 : 로컬 호스트/laravel/firstProject/공공/index.php에/프로젝트

나는 httpd.conf 파일과 주석 mod_rewrite 편집.

AllowOverride noneAllowOverride all으로 변경했습니다.

.htaccess에 RewriteBase /laravel/을 추가 한 다음 다시 시작했지만 여전히 동일한 문제가 있습니다.

이 내 routes.php 파일 : 이것은 내 htaccess로입니다

<?php 

// show a static view for the home page (app/views/pages/home.blade.php) 

Route::get('/', function() { 
return View::make('pages.home'); 
}); 

Route::get('about', function() { 
return View::make('pages.about'); 
}); 

Route::get('projects', function() { 
return View::make('pages.projects'); 
}); 

Route::get('contact', function() { 
return View::make('pages.contact'); 
}); 

: 내가 제공하는 솔루션을 많이 시도

<IfModule mod_rewrite.c> 
<IfModule mod_negotiation.c> 
    Options -MultiViews 
</IfModule> 

RewriteEngine On 
RewriteBase /laravel/ 
# Redirect Trailing Slashes... 
RewriteRule ^(.*)/$ /$1 [L,R=301] 

# Handle Front Controller... 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule^index.php [L] 
</IfModule> 

내가 질문을 여러 번 질문을 받았다 알고, 아직, 여전히 같은 ..

어떤 도움이나 조언을 주셔서 감사합니다.

+0

아직 Laravel을 사용하지 않았지만 샌드 박스와 같은 몇 가지 예가있을 것입니다. 너 해봤 어? 또한 여기에서 가장 중요한 것이 있습니다. htaccess 라우팅이 아닙니다. 마지막으로 - 설정을 변경 한 후 아파치를 다시 시작 했습니까? – Northys

+0

예 다시 시작했지만 동일합니다. – Ekin

+0

.htaccess를 요점 또는 게시판에 게시하십시오. 하나의 답변이 있으므로 게시하기 전에 시도하십시오. – Northys

답변

1

.htaccess를 사용해 보셨습니까?

Options +FollowSymLinks 
RewriteEngine On 

RewriteCond %{REQUEST_FILENAME} !-d 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteRule^index.php [L] 

은 내가 htaccess로 파일의 라인과 그 작품을 잘 다음 추가 http://laravel.com/docs/4.2/installation#pretty-urls

0

의 하나입니다.

RewriteEngine On 
RewriteBase /learn/ 
관련 문제