Force php through the .net engine in iis7
Posted
by Rippo
on Stack Overflow
See other posts from Stack Overflow
or by Rippo
Published on 2010-05-19T07:48:36Z
Indexed on
2010/05/19
8:00 UTC
Read the original article
Hit count: 256
I have converted a php to asp.net mvc and have it hosted with the Rackspace cloud. All works great apart from some php links are still linked from other sites and within search engines. My question is what do I need to add to my web.config to force php sites to go through the .net engine?
These links work as expected as I can catch the 404 and redirect where need be:-
http://www.securahome.net/myjunk.info
http://www.securahome.net/myjunk.phpp
However this one doesn't:-
http://www.securahome.net/myjunk.php
I have spoken to Rackspace cloud and they say "its not possible as IIS doesn't recognize php files. You can setup mime types to handle them"
This however makes no sense and I think they did not understand the problem. Does anyone have a solution?
© Stack Overflow or respective owner