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.

0

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.