=?UTF-8?Q?Andr=C3=A9=20Hentschel=20?=: htaccess: Use protocol relative urls
Jeremy Newman
jnewman at winehq.org
Fri Sep 27 16:04:19 CDT 2013
Module: website
Branch: master
Commit: 671fa835aec3bc8916dfb9fd62edddc158a6f2f5
URL: http://source.winehq.org/git/website.git/?a=commit;h=671fa835aec3bc8916dfb9fd62edddc158a6f2f5
Author: André Hentschel <nerv at dawncrow.de>
Date: Sun Sep 22 22:46:04 2013 +0200
htaccess: Use protocol relative urls
---
include/htaccess.sample | 92 +++++++++++++++++++++++-----------------------
1 files changed, 46 insertions(+), 46 deletions(-)
diff --git a/include/htaccess.sample b/include/htaccess.sample
index 7ca021d..9d2fcfb 100644
--- a/include/htaccess.sample
+++ b/include/htaccess.sample
@@ -27,78 +27,78 @@ php_value arg_separator.input ";&"
</Files>
# redirect winehq services to appropriate web sites
-RedirectMatch ^/?page=(.*)$ http://www.winehq.org/$1
-RedirectMatch ^/index\.php?page=(.*)$ http://www.winehq.org/$1
+RedirectMatch ^/?page=(.*)$ //www.winehq.org/$1
+RedirectMatch ^/index\.php?page=(.*)$ //www.winehq.org/$1
# redirect old winehq pages to new locations
-RedirectPermanent /index.php http://www.winehq.org/
-RedirectPermanent /about.shtml http://www.winehq.org/about
-RedirectPermanent /about/index.php http://www.winehq.org/about
-RedirectPermanent /community.shtml http://www.winehq.org/contributions
-RedirectPermanent /dev.shtml http://www.winehq.org/cvs
-RedirectPermanent /dev.html http://www.winehq.org/cvs
-RedirectPermanent /devstart.shtml http://www.winehq.org/cvs
-RedirectPermanent /documentation/ http://www.winehq.org/documentation
-RedirectPermanent /documentation http://www.winehq.org/documentation
-RedirectPermanent /download/index.php http://www.winehq.org/download
-RedirectPermanent /download.shtml http://www.winehq.org/download
-RedirectPermanent /download.html http://www.winehq.org/download
-RedirectPermanent /download-mirrors.html http://www.winehq.org/download
-RedirectPermanent /download-mirrors.shtml http://www.winehq.org/download
-RedirectPermanent /support.shtml http://www.winehq.org/documentation
-RedirectPermanent /News/status.html http://www.winehq.org/status
+RedirectPermanent /index.php //www.winehq.org/
+RedirectPermanent /about.shtml //www.winehq.org/about
+RedirectPermanent /about/index.php //www.winehq.org/about
+RedirectPermanent /community.shtml //www.winehq.org/contributions
+RedirectPermanent /dev.shtml //www.winehq.org/cvs
+RedirectPermanent /dev.html //www.winehq.org/cvs
+RedirectPermanent /devstart.shtml //www.winehq.org/cvs
+RedirectPermanent /documentation/ //www.winehq.org/documentation
+RedirectPermanent /documentation //www.winehq.org/documentation
+RedirectPermanent /download/index.php //www.winehq.org/download
+RedirectPermanent /download.shtml //www.winehq.org/download
+RedirectPermanent /download.html //www.winehq.org/download
+RedirectPermanent /download-mirrors.html //www.winehq.org/download
+RedirectPermanent /download-mirrors.shtml //www.winehq.org/download
+RedirectPermanent /support.shtml //www.winehq.org/documentation
+RedirectPermanent /News/status.html //www.winehq.org/status
RedirectPermanent /faq/ http://wiki.winehq.org/FAQ
RedirectPermanent /faq http://wiki.winehq.org/FAQ
RedirectPermanent /FAQ/ http://wiki.winehq.org/FAQ
RedirectPermanent /FAQ http://wiki.winehq.org/FAQ
-RedirectPermanent /screenshots/ http://appdb.winehq.org/
-RedirectPermanent /screenshots http://appdb.winehq.org/
+RedirectPermanent /screenshots/ //appdb.winehq.org/
+RedirectPermanent /screenshots //appdb.winehq.org/
RedirectPermanent /howto/ http://wiki.winehq.org/HowTo
RedirectPermanent /howto http://wiki.winehq.org/HowTo
-RedirectPermanent /todo/ http://www.winehq.org/TodoList
-RedirectPermanent /todo http://www.winehq.org/TodoList
+RedirectPermanent /todo/ //www.winehq.org/TodoList
+RedirectPermanent /todo //www.winehq.org/TodoList
RedirectPermanent /docs/wine-faq/ http://wiki.winehq.org/FAQ
RedirectPermanent /docs/wine-faq http://wiki.winehq.org/FAQ
RedirectPermanent /docs/wine-faq/index/ http://wiki.winehq.org/FAQ
RedirectPermanent /docs/wine-faq/index http://wiki.winehq.org/FAQ
# Fix Old WWN links
-RedirectMatch ^/\?issue=(.*)$ http://www.winehq.org/wwn/{$1}
-RedirectMatch ^/\?interview=(.*)$ http://www.winehq.org/interview/{$1}
+RedirectMatch ^/\?issue=(.*)$ //www.winehq.org/wwn/{$1}
+RedirectMatch ^/\?interview=(.*)$ //www.winehq.org/interview/{$1}
# fix documentation links
-RedirectMatch ^/(Docs|Docs/)$ http://www.winehq.org/documentation
-RedirectMatch ^/(docs|docs/)$ http://www.winehq.org/documentation
-RedirectMatch ^/Docs/(\w+-\w+)/$ http://www.winehq.org/docs/$1/index
-RedirectMatch ^/Docs/(\w+-\w+)/(.*)\.shtml$ http://www.winehq.org/docs/$1/$2
-RedirectMatch ^/docs/(\w+-\w+)/$ http://www.winehq.org/docs/$1/index
-RedirectMatch ^/docs/(\w+-\w+)/(.*)\.shtml$ http://www.winehq.org/docs/$1/$2
-RedirectMatch ^/docs/([a-z-]+)/$ http://www.winehq.org/docs/$1/index
-RedirectMatch ^/(docs|docs/)$ http://www.winehq.org//documentation
+RedirectMatch ^/(Docs|Docs/)$ //www.winehq.org/documentation
+RedirectMatch ^/(docs|docs/)$ //www.winehq.org/documentation
+RedirectMatch ^/Docs/(\w+-\w+)/$ //www.winehq.org/docs/$1/index
+RedirectMatch ^/Docs/(\w+-\w+)/(.*)\.shtml$ //www.winehq.org/docs/$1/$2
+RedirectMatch ^/docs/(\w+-\w+)/$ //www.winehq.org/docs/$1/index
+RedirectMatch ^/docs/(\w+-\w+)/(.*)\.shtml$ //www.winehq.org/docs/$1/$2
+RedirectMatch ^/docs/([a-z-]+)/$ //www.winehq.org/docs/$1/index
+RedirectMatch ^/(docs|docs/)$ //www.winehq.org//documentation
# redirect winehq services to appropriate web sites
-RedirectMatch ^/(APPS|Apps|apps)/$ http://appdb.winehq.org/
-RedirectMatch ^/(APPS|Apps|apps)$ http://appdb.winehq.org/
-RedirectMatch ^/(APPS|Apps|apps)/query\.cgi$ http://appdb.winehq.org/
-RedirectMatch ^/apps\.cgi$ http://appdb.winehq.org/
+RedirectMatch ^/(APPS|Apps|apps)/$ //appdb.winehq.org/
+RedirectMatch ^/(APPS|Apps|apps)$ //appdb.winehq.org/
+RedirectMatch ^/(APPS|Apps|apps)/query\.cgi$ //appdb.winehq.org/
+RedirectMatch ^/apps\.cgi$ //appdb.winehq.org/
RedirectMatch ^/(FAQ|Faq)/$ http://wiki.winehq.org/FAQ
RedirectMatch ^/(FAQ|Faq)$ http://wiki.winehq.org/FAQ
-RedirectMatch ^/(BUGS|Bugs|bugs)/$ http://bugs.winehq.org/
-RedirectMatch ^/(BUGS|Bugs|bugs)$ http://bugs.winehq.org/
+RedirectMatch ^/(BUGS|Bugs|bugs)/$ //bugs.winehq.org/
+RedirectMatch ^/(BUGS|Bugs|bugs)$ //bugs.winehq.org/
RedirectMatch ^/(TROUBLE|Trouble|trouble)/$ http://wiki.winehq.org/FAQ
RedirectMatch ^/(TROUBLE|Trouble|trouble)$ http://wiki.winehq.org/FAQ
# redirect soure website
-RedirectMatch ^/WineAPI(.*)$ http://source.winehq.org/WineAPI$1
-RedirectMatch ^/source(.*)$ http://source.winehq.org/source$1
-RedirectMatch ^/cvsweb(.*)$ http://cvs.winehq.org/cvsweb$1
-RedirectMatch ^/patch.py(.*)$ http://cvs.winehq.org/patch.py$1
+RedirectMatch ^/WineAPI(.*)$ //source.winehq.org/WineAPI$1
+RedirectMatch ^/source(.*)$ //source.winehq.org/source$1
+RedirectMatch ^/cvsweb(.*)$ //cvs.winehq.org/cvsweb$1
+RedirectMatch ^/patch.py(.*)$ //cvs.winehq.org/patch.py$1
# redirect source website utils
-RedirectPermanent /ident http://source.winehq.org/ident
-RedirectPermanent /find http://source.winehq.org/find
-RedirectPermanent /search http://source.winehq.org/search
-RedirectPermanent /diff http://source.winehq.org/search
+RedirectPermanent /ident //source.winehq.org/ident
+RedirectPermanent /find //source.winehq.org/find
+RedirectPermanent /search //source.winehq.org/search
+RedirectPermanent /diff //source.winehq.org/search
# redirect old wineconf pages
RedirectMatch ^/wineconf$ http://wiki.winehq.org/
More information about the wine-cvs
mailing list