hereの手順に従っています。 以下のコードをコピーして.htaccessファイルに貼り付けました。 .htaccessファイルは、私のdistフォルダを含む同じリポジトリにあり、Apacheにデプロイする予定です。Apacheサーバー上での角度配置
RewriteEngine On
# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule^- [L]
# If the requested resource doesn't exist, use index.html
RewriteRule^/index.html
私はそれが私のindex.htmlファイルを使用し、それが自動的にlocalhost/dist/login
にリダイレクトされますので、localhost/dist
すべてが、罰金行くアクセス。今すぐ私がlocalhost/dist/login
を直接要求すれば、apacheは文句を言って表示しますThe requested URL /dist/login was not found on this server.
私のために、Apacheが私の.htaccess
の設定を取得していないようです。私が間違っていることはありますか?