-
Notifications
You must be signed in to change notification settings - Fork 102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How about mod rewrite? #17
Comments
I also consider the mod rewirte is useful. I guess you may need this . where in route.js module.exports = {
"GET /**": "app/index.html"
} then puer -a ./route.js |
Maybe today , I will update the puer to implement the simple static mod rewrite |
It shows this when I use "GET /**": "app/index.html" .get() requires callback functions but got a [object String] |
@yhjor1212 because, it hasn't been implemented yet . :) I push the commit to github right now , but haven't release it to npm. you can npm install it through github temporarily npm install leeluolee/puer -g the code
will make the all path begin with '/' point to the |
The error message indeed disappeared, but the reload still doesn't work: access http://localhost:5000/pending1 |
maybe you should show your configuration , so I can track the issue easily . @yhjor1212 |
$locationProvider.html5Mode(true);
|
In case I have a file called app/index.html to start the app,
given that I am using html5mode in angularjs,
how can I access the site directly using localhost:8000 instead of localhost:8000/app/index.html?
Please help and thanks!
The text was updated successfully, but these errors were encountered: