Hi All

My question is how do I implement a code 301 redirect using Active 4D ?

I tried tracing the http request handler while serving a dynamic page containing the Active4D 'redirect' command, however 'A4D Execute 4D request' returns a response code of 200.

Background:

I am (amongst other things) doing a site migration to a different server. Not only is the server different but the site content is structured differently also. In addition to this, there were 2 domain names which pointed to the old server - we are ditching one of them and promoting the other but still want to support legacy links (bookmarks and google cached links) for the old domain name.

There are 2 cases where we want to do 'redirects' for legacy pages:

1] - trap old links on the 'expiring' domain name (supported on a different server) and redirect them to the new server using an http 301 response code 2] - trap old links on the current domain name and redirect them to the new pages (on the same server)

The 'expiring' domain' name is going to point to an auxiliary web server which will manage the redirects. The 'current' domain name will point straight to the new server where we want ideally to support 'dead links'.

Any suggestions welcome.

Best regards.

Peter

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to