stemitch2000
Programmer
Hello,
The problem. My website has been migrated to a new server. I would like to put redirects on every page to send clients to the correct page. I could hard code the redirects, i.e.
<meta http-equiv="refresh" content="0; URL=http://www.my-old-website.com/temp/redirected.html">
But I would then have to hard code the redirect on ever single page (change the web address).
Is there a in built function to do this, or do I have to code it myself? If I do have to recode it my self....
Is there a way of grabbing the current location of the page on the old website, and then joining it to the new website name?
i.e.
grabbing the "temp/redirected.html"
(alt. grabbing the whole address, and chop off the putting it into a variable, and joining it to the new site?
location = "temp/redirected.html"
<meta http-equiv="refresh" content="0; URL=http://www.my-new-website.com/<%=" &location "%> ">
The problem. My website has been migrated to a new server. I would like to put redirects on every page to send clients to the correct page. I could hard code the redirects, i.e.
<meta http-equiv="refresh" content="0; URL=http://www.my-old-website.com/temp/redirected.html">
But I would then have to hard code the redirect on ever single page (change the web address).
Is there a in built function to do this, or do I have to code it myself? If I do have to recode it my self....
Is there a way of grabbing the current location of the page on the old website, and then joining it to the new website name?
i.e.
grabbing the "temp/redirected.html"
(alt. grabbing the whole address, and chop off the putting it into a variable, and joining it to the new site?
location = "temp/redirected.html"
<meta http-equiv="refresh" content="0; URL=http://www.my-new-website.com/<%=" &location "%> ">