Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4831

Apache htaccess for ember

$
0
0

@therealbenhogan wrote:

Hi,

I am trying to deploy a test app, where the dist folder (after running ember build environment=production) lives under an ember folder. My folder structure is therefore

httpdocs/ember-v1/dist

I have an htaccess file which works fine when the app is first loaded, but breaks with an internal server error when you navigate to it initially from any other page.

Here's the htaccess

RewriteEngine On
RewriteRule ^$ ember-v1/dist/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ ember-v1/dist/$1

Other posts have addressed the issue eg http://discuss.emberjs.com/t/ember-ember-cli-and-apache/7755 but I'm struggling with this example since I want to serve the content from the folder ember-v1/dist and not the root - I hope this isn't going to cause a problem!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4831

Trending Articles