Permalink
Browse files

fix Geo-Guide redirection to work as intended

  • Loading branch information...
1 parent dee541b commit 1c189efcd4708a0be436b23813c25c1813ef9b89 @ssp ssp committed Jun 13, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 .htaccess
View
@@ -6,19 +6,19 @@ RedirectMatch 301 geo-leo-e-docs(.*) http://e-docs.geo-leo.de/
<IfModule mod_rewrite.c>
RewriteEngine On
+ # Redirect geo-guide.de domain to /geo-guide
+ RewriteCond %{HTTP_HOST} geo-guide\.de$ [NC]
+ RewriteRule .* http://geo-leo.de/geo-guide/ [L,R=301]
+
# Ensure canonical host name
RewriteCond %{HTTP_HOST} !^geo-leo\.de [NC]
RewriteCond %{HTTP_HOST} !^10.0.* [NC]
RewriteCond %{HTTP_HOST} !^$
- RewriteRule ^/?(.*) http://geo-leo.de/$1 [L,R,NE]
+ RewriteRule ^/?(.*) http://geo-leo.de/$1 [L,R=301,NE]
# Opac To Atom Script
RewriteRule opac.atom fileadmin/opac/opac-feed2.php [L]
- # Redirect geo-guide.de domain to /geo-guide
- RewriteCond %{HTTP_HOST} geo-guide\.de [NC]
- RewriteRule ^/.*$ http://geo-leo.de/geo-guide [L,R,NE]
-
# Redirect TYPO3 backend requests to SSL connections if SSL is available.
<IfDefine SSL>
RewriteCond %{HTTPS} off

0 comments on commit 1c189ef

Please sign in to comment.