[Slashdotjp-dev 1202] [729] add redirect code for old .shtml faq

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 7月 30日 (水) 17:54:13 JST


Revision: 729
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=729
Author:   tach
Date:     2008-07-30 17:54:13 +0900 (Wed, 30 Jul 2008)

Log Message:
-----------
add redirect code for old .shtml faq

Modified Paths:
--------------
    slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm


-------------- next part --------------
Modified: slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm
===================================================================
--- slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm	2008-07-30 07:28:13 UTC (rev 728)
+++ slashjp/branches/2.5.0.192/Slash/Apache/Apache.pm	2008-07-30 08:54:13 UTC (rev 729)
@@ -493,6 +493,7 @@
 	# faq for slashdot.jp
 	if ($uri =~ m!^/faq (?: (/[^?]*) | /? ) (?: \?(.*) )? $!x) {
 		my($word, $query) = ($1, $2);
+		$word =~ m!^/(.+)\.shtml$! && redirect("$constants->{absolutedir}/faq/$1");
 		$word ? $word =~ s!^/!! : redirect("$constants->{absolutedir}/faq/");
 		my @args = ($query);
 		if ($word) {


Slashdotjp-dev メーリングリストの案内
Back to archive index