Posted By

jonhenshaw on 04/16/07


Tagged


Versions (?)

CGI PERL 301 Redirect


 / Published in: Perl
 

URL: cgi perl 301 redirect

This redirects visitors to a new URL using a 301 redirect. Using a 301 redirect is the safest way to let search engines like Google, Yahoo!, Live and Ask know your address has changed.

  1. $q = new CGI;
  2. print $q->redirect("http://www.domain.com/");

Report this snippet  

You need to login to post a comment.