Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

redirect question 1

Status
Not open for further replies.

kaancho12

Technical User
Feb 22, 2005
191
hi,
i am trying to redirect a page from cgi/ directory but its not working. its a dynamic page thats created when s.t. is added to shopping cart--it fails and i was wondering if redirect is even allowed at all within the cgi directory. do i need to change s.t. else in http.conf. (the server is apache2.0.46 and server is redhat es 9.0)thanks
ko12
 
<META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://www.domain.co.uk/">


Kind Regards
Duncan
 
using CGI.pm
Code:
print $query->redirect(-uri=>"[URL unfurl="true"]http://www.somewhereelse.com/page2.php?id=$x");[/URL]

--Paul

cigless ...
 
Adding cookies to the redirect (as would be used in a shopping cart).
Code:
#$cookie is assigned earlier in the script
print $query->redirect(-uri=>"[URL unfurl="true"]http://www.somewhereelse.com/page2.php?id=$x",[/URL]
   -cookie => $cookie);

- Rieekan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top