Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • is there an nginx version of this? when i load /about the page fails unless I come to it through the app. Commented Nov 26, 2013 at 20:04
  • Never used them, but try this: stackoverflow.com/questions/5840497/convert-htaccess-to-nginx Commented Nov 27, 2013 at 14:34
  • 3
    @chovy - here goes nGinx version: server { server_name my-app; root /path/to/app; location / { try_files $uri $uri/ /index.html; } } Commented Jul 16, 2014 at 10:04
  • 4
    remember <base href="/"></base> in head tag Commented Dec 27, 2014 at 16:31
  • Thanks! without this, deep linking is impossible. I am still not sure the prettiness or URIs is worth the trouble of maintaining this if you need deep linking, especially in some cloud/paas environments wher you might not have easy access to httpd config. Commented Sep 6, 2016 at 7:03