我有一个angular度的应用程序与此文件夹结构
app --app.js controllers --controller.js services --services.js css img index.html .htaccess
我的index.html了
<base href="/">
和我的.htaccess
RewriteEngine On RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^ index.html [L]
一切正常
现在我想改变到这个文件夹结构
public --app --app.js --controllers --services --css --img --index.html .htaccess
我已经更改为index.html基地
<base href="/public/">
和我的.htaccess
DirectoryIndex public/index.html RewriteEngine On RewriteBase /public/ RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] RewriteRule ^ index.html [L]
现在HTML5模式不工作,但如果我closuresHTML5模式的应用程序工作…我做错了什么?