URL redirect problem

Author Message

SathishKumar Subramanian

Thursday 06 May 2004 8:52:46 am

Hi Everyone,

In my website we are publishing articles. I am trying to redirect the User to the URL of the article's source from a webpage like <b>http://abc.xyz.org/content/view/full/1480.</b>

The article's source URL is <b>http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en&Cr=2 .</b>

Instead to keep a list of URLs which are leaving from my website I am trying to store the
<b>http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en&Cr=2 </b> URL to the database.

For that I am sending the source url as an attribute to the page <b>http://abc.xyz.org/urlredirect/redirect </b> (Using modules)

like:
<b>http://abc.xyz.org/urlredirect/redirect?go=http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en&Cr=2 </b>

From that redirect page (a php page which is in extension/urlredirect/modules/urlredirect/redirect.php) I am trying to direct the user to the webpage http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en&Cr=2.

But in http://abc.xyz.org/urlredirect/redirect page I am getting the <b>go</b> attribute from the Querystring like <b>http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en </b>. But my expectation is <b>http://www.bibleuniversity.com/hopetalk/logon.asp?Lg=en&cr=2 </b>.

Please note, the <b>cr=2</b> is missing. How can I get it?

Please help to solve this? Thanx in advance!!! :-)

Sathizh

Dominik Pich

Saturday 08 May 2004 3:50:08 am

urlencode the url prior to passing via GET or do a post.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.