Hi Rowhan,
Berend is right, you would do something like:
RewriteCond %{HTTP_HOST} test2\.com\.au [NC]
RewriteRule ^(.*)$ http://www.test.com.au/$1?r [R=301,L]
And then you can check if isset($_GET['r']) to see if it has redirected.
We also do this with Google analytics, you can add campaign parameters
to the redirection (utm_campaign, utm_source, utm_medium) which is also
useful for metrics showing entry URLs
Cheers,
Stig
Berend de Boer wrote, On 19/08/2010 9:41 AM:
Rowan> Can anybody suggest a workaround for this?
Redirect with some specific query string appended?
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]