[Scummvm-cvs-logs] scummvm-web master -> 0d7a96287e6f890d4f7666e5ed6da2b555811a94
wjp
wjp at usecode.org
Mon Mar 7 17:12:17 CET 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-web' repo located at https://github.com/scummvm/scummvm-web .
Summary:
0d7a96287e WEB: Fix language switching delay
Commit: 0d7a96287e6f890d4f7666e5ed6da2b555811a94
https://github.com/scummvm/scummvm-web/commit/0d7a96287e6f890d4f7666e5ed6da2b555811a94
Author: Willem Jan Palenstijn (wjp at usecode.org)
Date: 2016-03-07T17:11:55+01:00
Commit Message:
WEB: Fix language switching delay
RewriteRule removes the query string if the substitute contains a new query
string. QSA overrides this behaviour and appends the old query string (with
the lang=xx part). See Apache mod_rewrite docs.
Changed paths:
.htaccess
diff --git a/.htaccess b/.htaccess
index 760cf26..4f3619c 100644
--- a/.htaccess
+++ b/.htaccess
@@ -59,29 +59,29 @@ RewriteRule ^(.+)\.php$ $1/? [NS,R=301]
##
# Basic rewrite
##
-RewriteRule ^([a-z]+)/?$ ?p=$1
+RewriteRule ^([a-z]+)/?$ ?p=$1 [QSA]
##
# Compatibility
##
-RewriteRule ^(compatibility)(/(DEV|[0-9\.rc]+)(/([^/]+))?)?/?$ ?p=$1&v=$3&t=$5 [L]
+RewriteRule ^(compatibility)(/(DEV|[0-9\.rc]+)(/([^/]+))?)?/?$ ?p=$1&v=$3&t=$5 [L,QSA]
##
# Documentation
##
-RewriteRule ^(documentation)(/([^/]+))?/? ?p=$1&d=$3 [L]
+RewriteRule ^(documentation)(/([^/]+))?/? ?p=$1&d=$3 [L,QSA]
##
# Feeds
##
-RewriteRule ^(feeds)/(atom|rss)/? ?p=$1&f=$2 [L]
+RewriteRule ^(feeds)/(atom|rss)/? ?p=$1&f=$2 [L,QSA]
##
# News
##
-RewriteRule ^(news)(/([0-9]{8}[a-z]?|archive))?/?$ ?p=$1&d=$3 [L]
+RewriteRule ^(news)(/([0-9]{8}[a-z]?|archive))?/?$ ?p=$1&d=$3 [L,QSA]
##
# Screenshots
##
-RewriteRule ^(screenshots)(/([a-z]+)(/([-_a-z0-9]+)(/([0-9]+))?)?)?/? ?p=$1&cat=$3&game=$5&num=$7 [L]
+RewriteRule ^(screenshots)(/([a-z]+)(/([-_a-z0-9]+)(/([0-9]+))?)?)?/? ?p=$1&cat=$3&game=$5&num=$7 [L,QSA]
More information about the Scummvm-git-logs
mailing list