Gossamer Forum
Home : Products : Gossamer Links : Discussions :

200 Response for jump.cgi

Quote Reply
200 Response for jump.cgi
Is it possible to change the response of the jump.cgi to 200 instead of 302? If so, how do I accomplish this?
Quote Reply
Re: [troyid] 200 Response for jump.cgi In reply to
It's a 302 redirect because that's how redirects work. For it to return a 200 response, it would need to return a page, and do a meta refresh or a JavaScript redirect.

Adrian
Quote Reply
Re: [troyid] 200 Response for jump.cgi In reply to
There is an official way to achieve this, although it is not recommended by W3C because there is no way user can control the refresh rate from the browser.

The other problems are:
1. Your site would become incredibly annoying for your visitors because this method breaks the back button.
2. Your site will be penalised from search engines by using this method.

However, if you still want to do this, head to Links/User/Jump.pm line 176:

and change it from:

Code:
print $IN->redirect($goto);

to:

Code:
print "Refresh: 0; url=$goto" . $GT::CGI::EOL;
print $IN->header();

Cheers,
Boris

Facebook, Twitter and Google+ Auth for GLinks and GCommunity | reCAPTCHA for GLinks | Free GLinks Plugins