[Scummvm-cvs-logs] SF.net SVN: scummvm:[40821] web/trunk/.htaccess
fredrik_w at users.sourceforge.net
fredrik_w at users.sourceforge.net
Sat May 23 22:29:00 CEST 2009
Revision: 40821
http://scummvm.svn.sourceforge.net/scummvm/?rev=40821&view=rev
Author: fredrik_w
Date: 2009-05-23 20:29:00 +0000 (Sat, 23 May 2009)
Log Message:
-----------
Add rewrite rules for the feeds.
Modified Paths:
--------------
web/trunk/.htaccess
Modified: web/trunk/.htaccess
===================================================================
--- web/trunk/.htaccess 2009-05-23 20:25:09 UTC (rev 40820)
+++ web/trunk/.htaccess 2009-05-23 20:29:00 UTC (rev 40821)
@@ -7,24 +7,27 @@
##
# Images linked directly from the wiki need to work
##
-RewriteRule ^screenshots/(.+)\.(jpg|png)$ data/screenshots/$1.$2 [L]
+RewriteRule ^screenshots/(.+)\.(jpg|png)$ data/screenshots/$1.$2 [NS,L]
##
# Forward old page requests to the new fancy URLs
##
# Compatibility page, with args
RewriteCond %{QUERY_STRING} version=(SVN|[0-9\.]+)(&details=(.+))?
-RewriteRule ^compatibility.php$ compatibility/%1/%3/? [R=301,NS]
+RewriteRule ^compatibility.php$ compatibility/%1/%3/? [NS,R=301]
# Documentation page, with args
RewriteCond %{QUERY_STRING} view=md5
-RewriteRule ^documentation.php$ documentation/md5sums/? [R=301,NS]
+RewriteRule ^documentation.php$ documentation/md5sums/? [NS,R=301]
# News page, with args
RewriteCond %{QUERY_STRING} shownews=([0-9]{8}).xml [OR]
RewriteCond %{QUERY_STRING} shownews=(archive)
-RewriteRule ^(index.php)?$ news/%1/? [R=301,NS]
+RewriteRule ^(index.php)?$ news/%1/? [NS,R=301]
+# Feeds (not pretty)
+RewriteRule ^feed-(atom|rss)(20)?.php$ feeds/$1/? [NS,R=301]
# Other pages, without args
-RewriteRule ^(.+)\.php$ $1/ [R=301,NS]
+#RewriteRule ^(.+)\.php$ $1/? [NS,R=301]
+
##
# Basic rewrite
##
@@ -33,7 +36,7 @@
##
# Compatibility
##
-RewriteRule ^(compatibility)(/(SVN|[0-9\.]+)(/([^/]+))?)?/?$ ?p=$1&v=$3&t=$5 [L]
+RewriteRule ^(compatibility)(/(SVN|[0-9\.]+)(/([^/]+))?)?/?$ ?p=$1&v=$3&t=$5 [L]
##
# Documentation
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list