I am not familiar with php and want to write a redirect script using php (The server I am working on does not support asp)
I think it needs to be something like this
<?php if ($_GET[id]; == 'test') {echo '<meta http-equiv="refresh" content="0;URL=http://www.test.com" />'} ?>
I want to send a query string like http://www.domain.com?id=test then the page should redirect to http://www.test.com or a query like http://www.domain.com?id=example and it shoud redirect to http://www.theexamplesite.com
Using javascript and classic asp I would have done it like this:
<% if (Request.QueryString("id") == 'test') { %><meta http-equiv="refresh" content="0;URL=http://www.test.com" /><% } %>
<% if (Request.QueryString("id") == 'example') { %><meta http-equiv="refresh" content="0;URL=http://www.theexamplesite.com" /><% } %>
Hope you can help me!
Thanks