Which programming language is used to redirect to another site? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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.

11th May 2017, 5:28 AM
Mostafa Kerim
Mostafa Kerim - avatar
2 Answers
+ 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.
11th May 2017, 5:34 AM
Calviղ
Calviղ - avatar
+ 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.
11th May 2017, 5:34 AM
1of3
1of3 - avatar