Skip to content
This repository has been archived by the owner on May 15, 2020. It is now read-only.

Using with pushState apps and rewrite rules #491

Closed
nrmitchi opened this issue Jan 3, 2015 · 1 comment
Closed

Using with pushState apps and rewrite rules #491

nrmitchi opened this issue Jan 3, 2015 · 1 comment

Comments

@nrmitchi
Copy link

nrmitchi commented Jan 3, 2015

Similar to #287, I am trying to use Pow to serve a static single page app locally. Everything works fine if the first request is to /, and index.html is served. What is need is to be able to serve index.html to all requests, and then allow the client to manage itself based on the url.

Is there any way that I can have Pow serve index.html for all requests?

@nrmitchi
Copy link
Author

nrmitchi commented Jan 3, 2015

Okay I found a way to do this, and kind of explained it in this gist.

Perhaps if this is a common need people are having now an option for this could be added into Pow somehow, or at least how to achieve this could be added to the documentation.

@nrmitchi nrmitchi closed this as completed Jan 3, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant