Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I didn't find a way to remove index.html from the url, because like this looks really ugly.

mydomain.com/index.html#/myview1 
mydomain.com/index.html#/myview2

Is there a way to remove that part, like that url will be so clear where the user is.

mydomain.com/myview1
mydomain.com/myview2

Tnx in advance for your time.

Edit: I just find way that it could work like:

mydomain.com/#/myview1
mydomain.com/#/myview2

which is pretty much better then with index.html.

But still if there is a way for shorter solution let me know.

share|improve this question
3  
How have you done to remove index.html from url? –  Alavaros Oct 29 '13 at 20:00
    
Read the edit Alavaros. –  Pnct Dec 6 '13 at 7:39
1  
@Pnct how did you remove index.html as you mentioned in your edit? –  anvarik Jan 3 at 9:14
    
@anvarik just remove "index.html" from routing config, and everywhere you use as a link. And as i wrote above as my edit, you should use just the "#" char. But if you are asking about removing completely "index.html" without "#", you should try to activate the html5mode for $location as Eduard Gamonal answered on my question. –  Pnct Jan 3 at 9:42
    
ok thanks @Pnct. –  anvarik Jan 3 at 9:57
add comment

1 Answer

activate the html5mode for $location

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.