how merge string to open webpage
<p>I want everytime people go to my website, it will automatically redirect to another website, say:</p>

<pre><code>https://www.redirect.com/link?q=NEWSTRING
</code></pre>

<p>it sounds weird, but actually, what I want is when people load my page, it will trigger some scripts, in which it can tract "NEWSTRING" from some website, then put it to the link above to redirect my website there.
So what I have is a first part of the link, which is fixed:</p>

<pre><code>https://www.redirect.com/link?q=
</code></pre>

<p>then </p>

<pre><code>NEWSTRING 
</code></pre>

<p>is obtained from my script, now how to write some thing that will redirect the webpage?
What I can think of is, write something in python.py, then rename it to .cgi, then upload it to my server at : </p>

<pre><code>/home/xxxxx/public_html/cgi-bin/python.cgi
</code></pre>

<p>Will this make my website automatically load and redirect there ? Thanks a lot !</p>
