I have a small ember application using the starter kit provided by the Ember-App-Kit (EAK) . I downloaded the distribution kit after assembly for production into an AWS EC2 instance.
Questions I have encountered now:
- When I click on the root URL, I see the index page, going to any other route from the links that are on the index page, it works fine and allows me to go to this page. The problem occurs when I try to click update on the page itself.
At first I thought this was due to a permission error, but only one html file and js and css are loading properly. Then the thought may be a htaccess problem, so I tried to insert it, but after it there will be no effects. The broken version of the application source code is in the Source Code
.htaccess file used for redirecting ::
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !index
RewriteRule ^(.*)$ /index.html [L]
source
share