use warnings;
use My::Web;
-use Apache2::Const qw(HTTP_MOVED_TEMPORARILY);
+use Apache2::Const qw(HTTP_MOVED_PERMANENTLY);
Wrequire 'project::Lib';
sub handler
{
my $W=My::Web->init(
- "header_only"=>1,
"args_check"=>{
"rel"=>'^(?:prev|next)$',
"project"=>'^\w+$',
},
+ "header_only"=>1,
);
+My::Web->heading();
my %item=project::Lib->name_to_hashref();
last if $target;
}
-$W->{"r"}->status(HTTP_MOVED_TEMPORARILY);
-$W->{"r"}->headers_out()->{"Location"}="http://".$W->{"web_hostname"}
-# .":7680" # DEBUG
- ."/project/".(!$target ? "" : "$target/");
-
-
-exit 0;
+My::Web->http_moved("./".(!$target ? "" : "$target/"),HTTP_MOVED_PERMANENTLY);
}
1;