4

I'm using ember1.0-rc3, i want to change hashbang urls into normal url format (ie, www.site.com/admin#/page1 to www.site.com/admin/page1).In order to make this change,i use location: "history" in app router.

But when i reload a page or bookmark a page doesn't works, it redirects to home page only.I want the options reload and bookmark in my app, without changing redirect urls in .htaccess file.Is there any way for it?Thanks in advance

m90
  • 11,434
  • 13
  • 62
  • 112
Bala
  • 67
  • 7

1 Answers1

5

In order to use HTML5 history with a single page app like ember, your server must be have the behavior of rendering your main index.html file for any URL. The Ember router has the logic to look at the URL when it loads and go to the correct route.

Luke Melia
  • 8,389
  • 33
  • 41
  • thanks...But to make my server serves index.html for any URL, i have to change it in .htaccess file.Without changing in server side to implement this,is there any option to change it in client side? – Bala Jun 25 '13 at 04:51
  • No, it's not possible to make the history approach work without server support. – Luke Melia Jun 25 '13 at 15:44