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![]()
| SitePoint Sponsor |
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![]()

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
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.


The php interpreter won't run any asp code in your pre-existing asp pages.
Doug G
=====
"If you ain't the lead dog, the view is always the same - Anon

thanks Timlgoe nice one, cheers Doug G for input

ts,
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).
Regards
DK
David K. Lynn - Data Koncepts is a long-time WebHostingBuzz (US/UK)
Client and (unpaid) WHB Ambassador
Updated mod_rewrite Tutorial Article (setup, config, test & write
mod_rewrite regex w/sample code) and Code Generator
Bookmarks