On 15 Mar 2007, at 08:36, Aparajita Fishman wrote:

Once you execute redirect, no further code is executed, so you can't set the response status with a redirect. You have to do something like this:

This did the trick.

I ended up implementing the redirect as follows:

1] - created a web root folder and corresponding entry in 'VirtualHosts.ini' for the legacy domain being re-directed

2] - populated that folder with only 2 documents: an 'index.a4d' and a '404.a4d'. Both containing the code below:

<%

        $URL:="http://www.MyRedirectTarget.com/";

        response headers{"Location"} := $URL  
        set response status(301)

%>

Seems work great. All requests, even dynamic ones land on something 'real' at the new site with the new domain. I also checked the headers with this tool:

http://www.seoconsultants.com/tools/headers.asp#results

... and they are all good.

Thanks for the help !

Peter
_______________________________________________
Active4D-dev mailing list
Active4D-dev@aparajitaworld.com
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to