나는 wordpress 사이트와 함께 배치되는 angular2 응용 프로그램을 작업 중입니다. 디렉토리 구조는 다음과 같은 :Wordpress 및 angular2 URL 경로가 작동하지 않습니다.
/var/www/html
app/ (angular2 app is placed under this folder)
wp-includes/
wp-content/
...
htaccess로 파일을 다시 작성 워드 프레스 URL의 HTML 폴더 아래에 배치하고 다른 htaccess로는 angular2 URL에 대한 응용 프로그램 폴더에 배치됩니다. htaccess 파일을 업데이트하여 애플리케이션 폴더 아래의 URL을 무시하지만 현재는 wordpress의 URL이 작동하지 않으며 Apache 404가 출시됩니다. 다음은 워드 프레스에 대한 내 htaccess로 파일입니다
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} "/app/"
RewriteRule . index.php [L]
</IfModule>
감사합니다. –