Keith Devens .com |
Monday, October 13, 2008 | ![]() |
| The wheels turn slow, but when they do, they grind. – Micah | ||
|
| ← Form tools (generators) | Stupid programmer tricks, part 001 → |

Ian Bicking (http://blog.ianbicking.org) wrote:
Keith (http://keithdevens.com/) wrote:
Weird. No, but I'll give it a shot.
Keith (http://keithdevens.com/) wrote:
Whoa, that worked. Why did that work?
Now all I have to do is figure out how to set the SCRIPT_NAME to the right thing and I'm golden. Got any ideas about that? 
Thanks for your help.
Keith (http://keithdevens.com/) wrote:
P.S. I realize that as long as I have the REQUEST_URI and the PATH_INFO I can derive the SCRIPT_NAME. I'm just wondering if there's any similar trick I can do in mod_rewrite with environment variables or something.
Keith (http://keithdevens.com/) wrote:
Whoa, that worked. Why did that work?
Ah, I get why that worked now. Makes sense. Thanks again.
Feel free to post a comment below. Please see my comment policy.
Formatting Rules (No HTML):
Generated in about 0.222s.
(Used 8 db queries)

Did you try:
RewriteRule . %{REQUEST_FILENAME}.php%{PATH_INFO} [L]