samedi 2 juillet 2016

Ember redirect rule .htaccess

I'm new to ember. I have a fairly stupid question.

My site works great on locahost:4200, but I can't figure out how to have it display at my domain's url.

What I've done:

I created an .htaccess in app/public. The file contains the following:

Options FollowSymLinks

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteBase /
  RewriteRule ^index\.html$ - [L]
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . /index.html [L]
</IfModule>

I then build the app using ember build --env production. The htaccess file gets added to the app/dist directory.

I push the code. When I go to my domain, I don't see my site.

What am I doing wrong?

Thanks for your help!!




Aucun commentaire:

Enregistrer un commentaire