내 웹 사이트 URL을보다 명확하게 만들기 위해 어떻게해야하는지 결정하는 데 어려움이 있습니다. 문제는 Angular와 Symfony2로 끝났습니다. Angular는 앞면을 제공하고 Symfony2는 API를 제공합니다. 지금웹 사이트의 URL을 올바르게 설정하는 방법
/api
/app => configurations go here
/bin => binaries
/src => your bundles/MVC code
/vendor => Symfony and 3rd party bundles
/web => this is where the web server document root should be pointed to
/front
/api -> Symlink to /api/web in the symfony part, working, but with app.php and app_dev.php
/css -> frontend CSS
/img -> frontend Images
/js -> frontend JS for AngularJS
/lib
/partials -> html templates used by AngularJS
index.html
내가 도착 URL이 AngularJS와 (/ 전면)에 의해 렌더링 곳입니다 www.project.dev/이다 완벽하게 작동하고, www.project.dev/ : 여기
내 웹 사이트의 구조입니다 API/응용 프로그램 (_dev) .PHP/... Symfony2에서 렌더링하지만 난 부분을 제거 할 : 나는 두 개의 빈 htaccess로가에 /와/API에, 내가 그들을 사용해야 할이app(_dev).php
을 ? 아니면 각도 경로 시스템을 사용해야합니까? 어떻게해야할까요?
내 질문을 편집하여 더 잘 이해할 수 있도록 =) – Romain
내가 마지막으로 언급 한 링크를 보았습니까? [이 게시물] (http://stackoverflow.com/questions/11149526/symfony2-rewrite-rules-htaccess-app-php)는 웹 디렉토리의 .htaccess 파일에 무엇을 넣을 수 있는지 보여줍니다. – Sehael
예, 전에 시도했습니다. 게시하고 내 특정 구조로 인해 작동하지 않을 수도 있습니다. – Romain