diff options
Diffstat (limited to 'blog')
-rwxr-xr-x | blog/index.pl | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/blog/index.pl b/blog/index.pl index cad0fba3..091bc1f3 100755 --- a/blog/index.pl +++ b/blog/index.pl @@ -1,8 +1,17 @@ #!/usr/bin/perl -# $Id: index.pl,v 1.1 2003/06/02 15:23:32 in2 Exp $ +# $Id: index.pl,v 1.2 2003/06/20 04:35:51 in2 Exp $ use CGI qw/:standard/; +use lib qw/./; +use LocalVars; -print redirect("http://blog.ptt2.cc/blog.pl/$1/") - if( $ENV{REDIRECT_REQUEST_URI} =~ m|/\?(.*)| ); +sub main +{ + print redirect("/blog.pl/$1/") + if( $ENV{REDIRECT_REQUEST_URI} =~ m|/\?(.*)| ); + + return redirect("/blog.pl/$BLOGdefault/"); +} + +main(); +1; -return redirect("http://blog.ptt2.cc/blog.pl/Blog/"); |