+ Antworten
Ergebnis 1 bis 5 von 5

Thema: Nach Serverumzug Problem mit mod-rewrite und SEO

  1. #1
    Hat hier eine Zweitwohnung
    Registriert seit
    05.09.2005
    Beiträge
    1.759
    Bedankte sich
    44
    Erhielt 337 Danksagungen
    in 322 Beiträgen

    Daumen hoch Nach Serverumzug Problem mit mod-rewrite und SEO

    Hallo,
    ich ziehe von einem Root-Server auf einen Managed Server um. Prinzipiell kein Problem, aber halt alles etwas anders. Bei meiner Domain traumpfade.de habe ich nun ein SEO-Problem, was vermutlich an der .htaccess liegt.
    Bei dem Managed Server habe ich Daten der Domains alle in Unterordner des Heimatverzeichnis gepackt.
    Aktiviere ich nun mod rewrite, so bekomme ich einen 404-Fehler, wenn ich auf den Unterordner verweise
    und einen 500-Fehler, wenn ich das lasse. Egal, was ich einstelle, ich bekomme es nicht mehr hin.

    Auf dem Root-Server war es kein Problem. Klar ich kann SEO auch ohne laufen lassen, aber dann habe ich immer das blöde index.php dazwischen...
    Vielleicht hat ja jemand einen Tip, scheinbar habe ich mich fest gebissen.
    Viele Grüße
    Petra

    Hier meine htaccess:
    Code:
    # @version $Id: htaccess.txt 21064 2011-04-03 22:12:19Z dextercowley $
    # @package Joomla
    # @copyright Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
    # @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
    # Joomla! is Free Software
    ##
    
    
    #####################################################
    #  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!
    #
    ## Deny access to extension xml files (uncomment out to activate)
    #<Files ~ "\.xml$">
    #Order allow,deny
    #Deny from all
    #Satisfy all
    #</Files>
    ## End of deny access to extension xml files
    # Block out any script trying to set a mosConfig value through the URL
    RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
    # 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 ********** tag in URL
    RewriteCond %{QUERY_STRING} (<|%3C)([^s]*s)+cript.*(>|%3E) [NC,OR]
    # Block out any script trying to set a PHP GLOBALS variable via URL
    RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
    # Block out any script trying to modify a _REQUEST variable via URL
    RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
    # Return 403 Forbidden header and show the content of the root homepage
    RewriteRule .* index.php [F]
    #
    ########## 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 (or vice versa), place that code here. Ensure those
    # redirects use the correct RewriteRule syntax and the [R=301,L] flags.
    #
    ########## End - Custom redirects
    
    
    #  Uncomment following line if your webserver's URL
    #  is not directly related to physical file paths.
    #  Update Your Joomla! Directory (just / for root)
    
     RewriteBase /traumpfade/
    
    
    ########## Begin - Joomla! core SEF Section
    #
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    #
    # 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 %{REQUEST_URI} !^/index\.php
    # and the request is for root, or for an extensionless URL, or the
    # requested URL ends with one of the listed extensions
    RewriteCond %{REQUEST_URI} (/[^.]*|\.(php|html?|feed|pdf|raw))$ [NC]
    # and the requested path and file doesn't directly match a physical file
    RewriteCond %{REQUEST_FILENAME} !-f
    # and the requested path and file doesn't directly match a physical folder
    RewriteCond %{REQUEST_FILENAME} !-d
    # internally rewrite the request to the index.php script
    RewriteRule .* index.php [L]
    #
    ########## End - Joomla! core SEF Section
    Geändert von Mikado (25.07.2011 um 15:29 Uhr)

  2. #2
    Hat hier eine Zweitwohnung Avatar von alex33kassel
    Registriert seit
    21.07.2007
    Ort
    Dortmund- Frankfurt
    Alter
    38
    Beiträge
    1.578
    Bedankte sich
    155
    Erhielt 313 Danksagungen
    in 290 Beiträgen

    Standard

    Die Frage wäre doch grundsätzlich erstmal, ob das Modul mod_rewrite von Apache aktiviert ist. Bitte mal in die php info schauen.

    Denn vom logischen her, wenn DU die Strukturen so übernommen hast wie beim alten Server, kann es ja nur an unterschiedlichen Serverconfigs liegen.

    Best regards,

    Alex
    Geändert von alex33kassel (24.07.2011 um 17:47 Uhr)

  3. Erhielt Danksagungen von:


  4. #3
    Hat hier eine Zweitwohnung
    Registriert seit
    05.09.2005
    Beiträge
    1.759
    Bedankte sich
    44
    Erhielt 337 Danksagungen
    in 322 Beiträgen

    Standard

    Danke Alex, das wird wohl das Problem sein. Ich verstehe es zwar nicht, aber scheinbar muss es erst aktiviert werden. Da werde ich morgen mal die Hotline anrufen.
    Viele Grüße
    Petra

  5. #4
    kiLAa
    Gast

    Standard

    ich habe das gleiche problem. sehr viele crawling fehler, laut webmaster tools von google. immer der gleiche fehler mit meinedomain.com/index.php/news/.... ich habe nun stunden mit der suche nach möglichen lösungen verbrungen, und im google-forum wurde mir dann gesagt ich solle folgendes in meiner .htaccess ändern:

    Code:
    RewriteCond %{REQUEST_URI} !^/index.php
    durch folgenden ersetzt:

    Code:
    RewriteCond %{REQUEST_URI} !^$
    nur kann ich dir nicht sagen ob das auch gewirkt hat bis google meine seite neu crawlt. oder gibts vielleicht sowas wie n test tool?

  6. #5
    Hat hier eine Zweitwohnung
    Registriert seit
    05.09.2005
    Beiträge
    1.759
    Bedankte sich
    44
    Erhielt 337 Danksagungen
    in 322 Beiträgen

    Standard

    Nein kiLAa, da ist keine Lösung für das Problem.

    Nun habe ich sicher 12 Stunden gesucht, gelesen und gegooglet, mit den hilfsbereiten Service-Mitarbeitern gesprochen und endlich habe ich die Lösung!

    Ein Managed Server funktioniert anders als ein Root-Server, er kann nur ausschließlich mit der Variablen "Options +SymLinksIfOwnerMatch" verwendet werden. Das muss, wenn es noch nicht aktiviert ist, im Kundenbereich gemacht werden. Kein Problem.

    In der .htaccess muss also anstelle von Options +FollowSymLinks ->

    Options +SymLinksIfOwnerMatch

    eingetragen werden.

    Und natürlich funktionierte es dann noch immer nicht. Ich habe 1000e von Einstellungen probiert, bis ich endlich noch

    RewriteBase /

    aktiviert habe. Dann hat es endlich geklappt. Super! Leider sitzt der Doofmann ja immer davor, aber die Stunden haben sich gelohnt! Alles ist wieder hübsch!

    Viele Grüße
    Petra

+ Antworten

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein