Forum Moderators: open

Message Too Old, No Replies

webpage redirect

html redirect

         

Mr_T

3:35 pm on Aug 20, 2008 (gmt 0)

10+ Year Member



Hello to all, my first post on the site, i hope you can help me

I have set up a redirect with html on a webpage


<meta HTTP-EQUIV="REFRESH" content="0; url=http://www.mydomain.co.uk/newaccount.php">

I would like to be able to record the domain that i am redirecting from on the page mentioned above.

eg. www.mydomain1.co.uk will redirect to www.mydomain.co.uk, i would like to see mydomain1.co.uk displayed as text on www.mydomain.co.uk

I hope this makes sense

Thanks in advance

Marshall

5:00 pm on Aug 20, 2008 (gmt 0)

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



Hello Mr T and welcome to WebmasterWorld.

What you are asking would require a script redirect using asp, php or JavaScript with a "get referrer" provision followed by a "document write" response. Unless you can configure your server to run .html as either .asp or .php, you would probably have to go with JavaScript, unless of course the page you are redirecting already has an asp or php extension. I know the coding for .asp, but I am not over familiar with the .php equivalent. Sorry.

Marshall

Mr_T

7:16 am on Aug 21, 2008 (gmt 0)

10+ Year Member



Thanks for the response, i will explore php to see what i can find