0
Which programming language is used to redirect to another site?
I have seen a lot of sites that imedetally go to another website. One example is goo.gl links that make a long link small. my question is: Is it a programming language that are used to do this, and in that case which one.
2 Respostas
+ 3
Html can do it, no other programming needed.
In the head tag, put
<meta http-equiv="refresh" content="0; url=http://other-site.com/" />
Server .htaccess file also can do redirection, if you prefer.
+ 1
It is a basic feature of http. For most uses you probably want to make some check first, like : Is this a mobile device? In that case you can use pretty much any language.