2
날씬한 api를 만들고 싶습니다. api라는 디렉토리의 내 "도구"하위 도메인에있을 것입니다.슬림 프레임 워크 적절한 htaccess는 워드 프레스로 설정
http://tools.fifaguide.com/api
내 .htaccess 파일은 어떻게 표시되어야합니까?
현재 내 htaccess로 나의 워드 프레스 디렉토리에있는(HTML -> htaccess로), 그것은 다음과 같습니다
<IfModule mod_rewrite.c>
//my part
RewriteEngine On
RewriteCond %{REQUEST_URI} !^/api/index.php
RewriteRule ^api/(.*) http://tools.fifaguide.com/api/index.php [L]
//wordpress part
RewriteBase/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
이 가진 문제는 내가
http://tools.fifaguide.com/api/hello/steve
을하려고 할 때
/api/hello/steve에 머물러 서 결과가 표시되는 대신 api/index.php로 즉시 리디렉션됩니다.
WordPress가 이런 일을하는 것처럼 보이지만 어떻게 방지합니까?