From 8dbc5bba30acbe204f23fb639204b8c0c509d354 Mon Sep 17 00:00:00 2001 From: Frank Lichtenheld Date: Fri, 24 Oct 2008 18:30:52 +0200 Subject: [PATCH] apache.conf: Remove %SITE% from RewriteRule substitutions This isn't necessary at all and actually caused small problems during the server move. --- conf/apache.conf.sed.in | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/conf/apache.conf.sed.in b/conf/apache.conf.sed.in index 2067d86..0eac5fa 100644 --- a/conf/apache.conf.sed.in +++ b/conf/apache.conf.sed.in @@ -116,12 +116,12 @@ # RewriteRule ^/$ http://www.debian.org/distrib/packages RewriteRule ^/$ /index.html [L] RewriteRule ^/([^/+]*)([+])([^/]*)$ "/$1%%{%}2B$3" [N] - RewriteRule ^/changelog:(.+)$ http://%SITE%/changelogs/${changelog-url:$1} [R,L,NE] - RewriteRule ^/src:([^/]+)$ http://%SITE%/search?searchon=sourcenames&keywords=$1 [R,L,NE] - RewriteRule ^/file:(.+)$ http://%SITE%/search?searchon=contents&keywords=$1 [R,L,NE] + RewriteRule ^/changelog:(.+)$ /changelogs/${changelog-url:$1} [R,L,NE] + RewriteRule ^/src:([^/]+)$ /search?searchon=sourcenames&keywords=$1 [R,L,NE] + RewriteRule ^/file:(.+)$ /search?searchon=contents&keywords=$1 [R,L,NE] RewriteCond %{REQUEST_URI} !^/search$ [OR] RewriteCond %{QUERY_STRING} ^$ - RewriteRule ^/([^/]+)$ http://%SITE%/search?keywords=$1 [R,L,NE] + RewriteRule ^/([^/]+)$ /search?keywords=$1 [R,L,NE] RewriteCond %{QUERY_STRING} ="" RewriteCond %TOPDIR%/www%{REQUEST_FILENAME} -f [OR] -- 2.39.2