Du befindest Dich im Archiv vom ABAKUS Online Marketing Forum. Hier kannst Du Dich für das Forum mit den aktuellen Beiträgen registrieren.

Seltsames Verhalten nach 301 Redirect

Mehrere Domains, Domain-Umzug, neue Dateinamen, 301/302
Neues Thema Antworten
Predpray
PostRank 1
PostRank 1
Beiträge: 9
Registriert: 18.11.2013, 09:50

Beitrag von Predpray » 18.11.2013, 09:56

Ich habe auf meinen Webspace eine neue Domain aufschalten lassen. Ich möchte nun mittels 301 eine permanente Weiter- oder Umleitung auf die neue Domain realisieren. Sollte ganz einfach gehen.

Ich bin in Parallels Confixx eingeloggt.
Ich weise der neuen Domain www.nordbrandenburg.de den Ordner /stechlin25 mit den Webinhalten (Joomla 2.5) zu. Ebenso der Domain ohne "www".

Dieser Ordner beinhaltet eine .htaccess mit folgendem Inhalt:

Code: Alles auswählen

##
# @package		Joomla
# @copyright	Copyright (C) 2005 - 2013 Open Source Matters. All rights reserved.
# @license		GNU General Public License version 2 or later; see LICENSE.txt
##

##
# READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE!
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
##

## Can be commented out if causes errors, see notes above.
Options +FollowSymLinks

## Mod_rewrite in use.

RewriteEngine On

## Begin - Rewrite rules to block out some common exploits.
# If you experience problems on your site block out the operations listed below
# This attempts to block the most common type of exploit `attempts` to Joomla!
#
# Block out any script trying to base64_encode data within the URL.
RewriteCond %{QUERY_STRING} base64_encode[^(]*\([^)]*\) [OR]
# Block out any script that includes a <script> tag in URL.
RewriteCond %&#123;QUERY_STRING&#125; &#40;<|%3C&#41;&#40;&#91;^s&#93;*s&#41;+cript.*&#40;>|%3E&#41; &#91;NC,OR&#93;
# Block out any script trying to set a PHP GLOBALS variable via URL.
RewriteCond %&#123;QUERY_STRING&#125; GLOBALS&#40;=|\&#91;|\%&#91;0-9A-Z&#93;&#123;0,2&#125;&#41; &#91;OR&#93;
# Block out any script trying to modify a _REQUEST variable via URL.
RewriteCond %&#123;QUERY_STRING&#125; _REQUEST&#40;=|\&#91;|\%&#91;0-9A-Z&#93;&#123;0,2&#125;&#41;
# Return 403 Forbidden header and show the content of the root homepage
RewriteRule .* index.php &#91;F&#93;
#
## End - Rewrite rules to block out some common exploits.

## Begin - Custom redirects
#
# If you need to redirect some pages, or set a canonical non-www to
# www redirect &#40;or vice versa&#41;, place that code here. Ensure those
# redirects use the correct RewriteRule syntax and the &#91;R=301,L&#93; flags.

#RewriteCond %&#123;HTTP_HOST&#125; !^www\.stechlin-ruppiner-land\.de$ &#91;NC&#93;
#RewriteRule ^&#40;.*&#41;$ http&#58;//www.stechlin-ruppiner-land.de/$1 &#91;R=301,L&#93;

#RewriteCond %&#123;HTTP_HOST&#125; !nordbrandenburg.de$ &#91;NC&#93;
#RewriteRule ^&#40;.*&#41;$ http&#58;//www.nordbrandenburg.de/$1 &#91;L,R=301&#93;

RewriteCond %&#123;HTTP_HOST&#125; ^&#40;www.&#41;?stechlin-ruppiner-land.de$ &#91;NC&#93;
RewriteRule ^&#40;.*&#41;$ http&#58;//www.nordbrandenburg.de/$1 &#91;R=301,L&#93; 

#RewriteCond %&#123;HTTP_HOST&#125; ^nordbrandenburg.de &#91;NC&#93;
#RewriteRule &#40;.*&#41; http&#58;//www.nordbrandenburg.de/$1 &#91;R=301,L&#93;

## End - Custom redirects

##
# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update Your Joomla! Directory &#40;just / for root&#41;.
##

RewriteBase /

## Begin - Joomla! core SEF Section.
#
RewriteRule .* - &#91;E=HTTP_AUTHORIZATION&#58;%&#123;HTTP&#58;Authorization&#125;&#93;
#
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %&#123;REQUEST_URI&#125; !^/index\.php
# and the request is for something within the component folder,
# or for the site root, or for an extensionless URL, or the
# requested URL ends with one of the listed extensions
RewriteCond %&#123;REQUEST_URI&#125; /component/|&#40;/&#91;^.&#93;*|\.&#40;php|html?|feed|pdf|vcf|raw&#41;&#41;$ &#91;NC&#93;
# and the requested path and file doesn't directly match a physical file
RewriteCond %&#123;REQUEST_FILENAME&#125; !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %&#123;REQUEST_FILENAME&#125; !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php &#91;L&#93;
#
## End - Joomla! core SEF Section.

Der alten Domain www.stechlin-ruppiner-land.de weise ich einen Ordner zu, der nur eine .htaccess Datei beinhaltet. Die .htaccess hat folgenden Inhalt:

Code: Alles auswählen

RewriteEngine On
RewriteBase /
RewriteRule &#40;.*&#41; http&#58;//www.nordbrandenburg.de/$1 &#91;R=301,L&#93;  
Den Catch lege ich nun von der alten www-Domain auf die neue www-Domain.

Wenn ich nun die Seite mit der alten Domain im Browser aufrufe, ganz gleich ob unter Linux oder unter Windows, wird die Domain gewechselt und ich bekomme die Seite von vor dem Relaunch zu sehen! Das passiert offenbar nur bei mir. Denn ein Test auf einem fremden Rechner zeigt, das dort die richtige Seite angezeigt wird.
Wie bekomme ich nun die richtige Seite auf meinem Rechner angezeigt? In dieser Konstelation kann ich die aktuelle Seite nicht bearbeiten. Und warum ist das so?

Ich habe bereits den Cache jeden Browser komplett gelöscht. Ich habe den DNS-Cache auf den PCs gelöscht.
Die dargestellte Seite liegt zudem nicht mehr auf dem Server. Denn auch diesen Ordner habe ich gelöscht!
Ich verstehe es nicht.
Kann mir hier jemand weiter helfen?
Der Hoster wurde bereits informiert.

Vielen Dank
Frank

Anzeige von ABAKUS

von Anzeige von ABAKUS »


Hochwertiger Linkaufbau bei ABAKUS:
  • Google-konformer Linkaufbau
  • nachhaltiges Ranking
  • Linkbuilding Angebote zu fairen Preisen
  • internationale Backlinks
Wir bieten Beratung und Umsetzung.
Jetzt anfragen: 0511 / 300325-0

Pompom
PostRank 10
PostRank 10
Beiträge: 3751
Registriert: 10.09.2004, 16:38

Beitrag von Pompom » 18.11.2013, 10:26

Keine Ahnung.
Mir ist bloß aufgefallen, dass du auch
https://warumleitestdudenndieseurlum.st ... er-land.de umleitest.

Thomas B.
PostRank 4
PostRank 4
Beiträge: 137
Registriert: 11.09.2013, 21:04
Wohnort: München

Beitrag von Thomas B. » 18.11.2013, 10:27

Nutzt du einen Proxy oder etwas ähnliches?

Normalerweise sollte die neue Seite auch bei dir angezeigt werden. 301 werden gecached aber wenn du diesen gelehrt hast sollte es eigentlich gehen.

Passiert es auch wenn du mit einem anderen Gerät aber über den selben Router die Seite aufrufst?