开发者

make server run aspx requests with php

We are creating a real estate website. The National Franchise site wants to pass us searchs that fall in out local area. The searches MUST follow this format:

/propertysearch/findpropreties.aspx?q1=this&q2=that&q3=other

The issues is that we have built a site in PHP and buying a windows server and learning aspx seems like overkill for this one script.

So... I think I need to make a redirect, like this:

RewriteRule /propertysearch/findpropreties.aspx$ http://texasmls.com/corpSearch.php [R=301,L,QSA]

But it does not work.

In summary: Does anyone know how to trick the server into running aspx files as php? I recieve a request like example.com/propertysearch/findproperties.aspx?this=Something I want to parse this request with php...

Thanks for t开发者_如何学JAVAhe help!


You've tagged your question with apache2, so this is the Apache way:

Somewhere in your httpd.conf, site-specific .conf file, or a .htaccess, put this:

AddType application/x-httpd-php .aspx

This'll force Apache to run any .aspx through the PHP interpreter.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜