UbuntuシステムでPHP、MySQL、apache2を使用してangularjsプロジェクトを構築しています
プロジェクトの構造
var/www/html/demo/
Demo フォルダは私のプロジェクト フォルダです。
demo=>js(All js file), index.php, addstudent.php file etc
ページ全体を更新し、AngularJS で html5Mode(true) を使用してルーティングの概念を使用しているときに問題に直面していますが、.htaccess ファイルでは正しく動作しません。
要求された URL /demo/addstudent がこのサーバーで見つかりませんでした。
htaccessコードはこちら
DirectoryIndex デモ/index.php
RewriteEngine On
RewriteBase /demo/
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^ index.php [L]
index.php に追加された base ref は