in reply to Re: url redirection
in thread url redirection
yuck!
For starters, you're ending the header a total of three times! Furthermore, ->redirect already sets the status line, so you're setting the status line twice with two different titles.
All that's needed is:
print $query->redirect('http://localhost/rbsaws/');
The OP seems to want a Content-Type header for some reason. Is he trying to provide an HTML alternative for browsers that don't support 302 (not that there is such a thing)? If so, he could do the following to add the Content-Type header:
print $query->redirect( -uri => 'http://localhost/rbsaws/', -content => 'text/html', ); print(q{Please click <a href="http://localhost/rbsaws/">here</a>});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: url redirection
by zoodog (Initiate) on Dec 04, 2010 at 17:33 UTC |