[Slashdotjp-dev 1544] [1075] Redirect Antenna URL on IndexHandler

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2009年 3月 16日 (月) 21:14:11 JST


Revision: 1075
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=1075
Author:   tach
Date:     2009-03-16 21:14:11 +0900 (Mon, 16 Mar 2009)

Log Message:
-----------
Redirect Antenna URL on IndexHandler

Modified Paths:
--------------
    slashjp/trunk/Slash/Apache/Apache.pm
    slashjp/trunk/debian/changelog


-------------- next part --------------
Modified: slashjp/trunk/Slash/Apache/Apache.pm
===================================================================
--- slashjp/trunk/Slash/Apache/Apache.pm	2009-03-16 11:36:56 UTC (rev 1074)
+++ slashjp/trunk/Slash/Apache/Apache.pm	2009-03-16 12:14:11 UTC (rev 1075)
@@ -372,6 +372,11 @@
 	#	$uri =~ s/^\Q$path//;
 	#}
 
+	# Redirect antenna URL
+	if ($r->the_request =~ m! /(\S*)\?\d+ !) {
+		redirect("$constants->{absolutedir}/$1", 301);
+	}
+
 	# redirect to new journal rss URL for slashdot.jp (2008-09-16, tach)
 	# Before: /journal.pl?op=display&uid=3&content_type=rss
 	# After: /~tach/journal/rss

Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2009-03-16 11:36:56 UTC (rev 1074)
+++ slashjp/trunk/debian/changelog	2009-03-16 12:14:11 UTC (rev 1075)
@@ -3,8 +3,9 @@
   * Add HTML "<meta name=description>" into sevaral pages
     - article.pl: already inserted, change content to introtext
     - index.pl: add data "meta_desc" and title of first 5 articles
+  * Redirect Antenna URL on IndexHandler
 
- -- Taku YASUI <tach****@osdn*****>  Mon, 16 Mar 2009 11:36:00 +0000
+ -- Taku YASUI <tach****@osdn*****>  Mon, 16 Mar 2009 12:13:50 +0000
 
 slash (2.5.0.233-7) unstable; urgency=low
 



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