theslip — 2012-02-28T06:17:55-05:00 — #1
Hi there, how can I correctly redirect a .asp website to a .php website, all my pages will be the same name and paths, only difference is they are now php on unix server instead of windows? cheers;)
timigoe — 2012-02-29T17:26:09-05:00 — #2
You have set your new server to run .asp as php ? In that case, its just a case of telling Apache (or whatever your server is) to throw .asp pages through the php parser.
AddType application/x-httpd-php .asp
theslip — 2012-03-04T09:34:15-05:00 — #3
ah good move, I guess then my pages would still be called .asp and no redirection required? is that right? is there any reasons not to do this or gottchya's with this method? thanks for reply.
doug_g — 2012-03-05T14:10:10-05:00 — #4
The php interpreter won't run any asp code in your pre-existing asp pages.
timigoe — 2012-03-05T15:34:51-05:00 — #5
Indeed, thats the point of the suggestion, then there is no redirect faff to be done
theslip — 2012-03-09T04:50:11-05:00 — #6
thanks Timlgoe nice one, cheers Doug G for input
dklynn — 2012-03-09T16:26:34-05:00 — #7
There's always the simple redirection in the sample code section of my signature's mod_rewrite tutorial (which I would use rather than messing with AddType handlers).