这是我的 .htaccess 文件
RewriteEngine On
RewriteBase /myapp_dev/
RewriteCond %{REQUEST_URI} /index\.html$ [NC,OR]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^(signup|signin)/?$ $1.html [L,NC]
RewriteRule ^home/?$ signup.html [L,NC]
RewriteRule . index.html [L]
在我的 html 页面中,我有这个
<!doctype html>
<html class="no-js">
<head>
<meta charset="utf-8">
<base href="/">
</head>
<body>
<!-- Something here -->
<script src="public/libs/angular/angular.js"></script>
<script src="public/libs/angular-resource/angular-resource.js"></script>
</body>
</html>
我期待服务器请求http://localhost/myapp_dev/public/libs/angular/angular.js
但它正在请求这个无论如何都不存在的 url。
http://localhost/public/libs/angular/angular.js
.htaccess 代码中的任何问题?