Hi,
How can I prevent IIS from rewriting link URLs in my PHP/HTML pages? I am currently using rewrite rules to redirectwww.mydomain.com/en/PageName towww.mydomain.com/page.php?page=PageName&lang=en. It works fine, the problem is that IIS rewrites all URLs links inside the page that the Web server is pushing to the client. For example, href="en/PageName" is being rewritten in href="en/en/PageName", which causes redirection to fail. I know I could only put href="PageName" so IIS would rewrite it in href="en/PageName". However by doing this my website becomes dependant on the redirection policies, and accessing a page directly by it's "non-clean" URL (www.mydomain.com/page.php?page=PageName&lang=en) will cause all links to fail, because accessing an URL that way, IIS will not do any rewriting.
Basically, I only want to enable nice URLs without IIS messing up with the links inside the web pages... Is is possible to do so?
Thank you!