Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can reconstruct the actual URL post rewrite rule, but is there a way for me to get the URL pre rewrite rule?

Also, when I run php in IIS 7.5, and have rewrite rules in my web.config, how do I get the pre rewrite URL in my php?

share|improve this question
up vote 2 down vote accepted

In Apache, the pre-rewritten URL is available in a server variable $_SERVER['REQUEST_URI'].

share|improve this answer
    
Cool, just tested it, works in apache httpd and iis 7.5. – Robert Louis Murphy Jul 19 '12 at 11:53

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.