emberjs应用程序使用apache和php以及子目录

emberjs应用程序使用apache和php以及子目录,php,apache,.htaccess,ember.js,Php,Apache,.htaccess,Ember.js,我有一个在apache/php上运行的ember应用程序 以下是我的路线: App.Router.map(function(){ this.route('homes'); this.route('rentals'); this.route('about'); this.route('contact'); this.resource('account',function(){ this.route('profile'); th

我有一个在apache/php上运行的ember应用程序

以下是我的路线:

App.Router.map(function(){
    this.route('homes');
    this.route('rentals');
    this.route('about');
    this.route('contact');
    this.resource('account',function(){
        this.route('profile');
        this.route('users');
        this.route('post');
    });
});
这是我的.htaccess文件:

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php#$1 [L]
单击“我的导航”转到帐户,然后单击“子导航”转到配置文件即可:

mydomain.loc/account/profile

但是,当我在该url上单击“重新加载”时,会出现以下错误:

SyntaxError: syntax error
    <!DOCTYPE html>
SyntaxError:语法错误

我猜是因为我的.htaccess没有正确配置为使用emberjs创建子目录?有什么想法吗?

简单的解决方案。。。错误的原因是脚本标记中的路径是相对的。例如:js/libs/jquery-1.10.2.js修复程序只是将其更改为:/js/libs/jquery-1.10.2.js