Forum Moderators: coopster

Message Too Old, No Replies

Domain Redirection

         

bluesquirel

5:07 pm on Jan 6, 2005 (gmt 0)

10+ Year Member



I am designing a site that needs to have around 500 domain alias's and dependant on the domain the redirect comes from I need to display information relative to that request.
E.g

Main Domain = www.xyz.com

Sub Domain = www.abc.co.uk

Sub Domain needs to redirect to www.xyz.com and pull data from Central Database regarding www.abc.co.uk.

I want to achieve this without having each domain having something like (ASP) response.redirect("www.xyz.com?ID=23") I would like to use Domain forwarding to reduce costs and have a script which picks up where the client has been redirected from and then displays appropriate information.

Is this possible using PHP?

ergophobe

10:22 pm on Jan 6, 2005 (gmt 0)

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




without having each domain having something like (ASP) response.redirect("www.xyz.com?ID=23")

I don't think so, if I follow. In PHP you would do this with

header("Location: www.xyz.com") [php.net]

Why don't you just use mod_rewrite and pick up the query string after the redirect?