1

I am trying to get AngularJS to work with Apache 2 HTTP Server. I am finding resources online that suggest changing .htaccess to use the mod_rewrite module(< rewrite rules for apache 2 to use with angular js > and < Apache rewrite rules not being applied for angularjs >).

The answer probably lies in the theory of how Angular and Apache work, but why is a module used for URL rewriting(mod_rewrite) needed in order for Angular to work on Apache? I thought that Angular was a JavaScript framework and that JavaScript ran on the client. Even if the HTML page containing Angular needs to be translated before it is served up to the client, what part does a URL rewriting module play in this translation?

Thanks.

Community
  • 1
  • 1
apandit
  • 808
  • 7
  • 15

1 Answers1

0

URL rewrite is not needed in every case(as was the case with me). My problem was that I was using IE and it was starting in compatability mode.

Used the line specified at < What does <meta http-equiv="X-UA-Compatible" content="IE=edge"> do? > in my HTML and it worked for me.

Community
  • 1
  • 1
apandit
  • 808
  • 7
  • 15