Skip to content
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

reloading problem #3

Closed
Bhoft opened this issue Jan 15, 2015 · 5 comments
Closed

reloading problem #3

Bhoft opened this issue Jan 15, 2015 · 5 comments

Comments

@Bhoft
Copy link

Bhoft commented Jan 15, 2015

it would be helpful for newcomers (like me) to angularjs that to fix the 404 reloading problem you have to create a .htaccess file to redirect all requests e.g. /post/2 back to the index.html so that the browser reloading works.

@githubjeka
Copy link
Contributor

Thanks. I know it. 7d9fb35#diff-8052c42ab3b8aa06a3f5f788a4ddccc2L212
But this repository on github.io without apache.

Need to find another solution.

@Bhoft
Copy link
Author

Bhoft commented Jan 16, 2015

You are right (i also was pretty sure that "you" know this but newcomers maybe don't)
I mean a little remark here in the readme would be helpful as you have used the same source also in the yii2 repository.
https://github.com/githubjeka/angular-yii2

@githubjeka
Copy link
Contributor

I added a wiki solution

@arsitek
Copy link

arsitek commented Sep 7, 2015

With option 2nd where to replace content in index.html to 404.html, url in menu still refer to "http://localhost/post/published" when it should be "http://localhost/angular-yii2/post/published", and when I put URL manually to it, I got 404 error from apache.

There is something to do in 'app.js' to fix this?

Thank you

@githubjeka
Copy link
Contributor

if your code located in subfolder then you should set <base> tag

<base href="http://localhost/angular-yii2/" /> or configurate your virtual server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants