Forum Moderators: coopster

Message Too Old, No Replies

Need to make linux server parse asp.net file as php file

301 redirect for Converting a website from asp.net to php,

         

centime

8:17 pm on Jun 1, 2007 (gmt 0)

10+ Year Member



Hi All

Tried this on an earlier post , but the code doesn't work, most like cos i don't know any php , apache, or htaccess etc

I am guess tis a simpe thing, but what is the exact code, placed somewhere in .htaccess tp cause

index.aspx to be parsed as if it where index.php

i would like to place php

301 code in

index.aspx

phparion

6:11 am on Jun 2, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



it is Apache Forum question. Anyway try something like following in your htaccess

RewriteEngine On

RewriteRule ^(.+)\.aspx$ $1.php [R=301,L]