Ergebnis 1 bis 2 von 2

Thema: 500: internal error (mal wieder)

  1. #1
    Contao-Nutzer
    Registriert seit
    05.02.2014.
    Beiträge
    1

    Standard 500: internal error (mal wieder)

    Hallo zusammen,

    ich würde diesen Faden nicht erstellen, wenn es nicht absolut notwendig wäre. Ich weiß das Thema existiert schon oft genug, aber ich finde einfach keine Lösung.
    Folgende Ausgangslage:
    Webspace bei 1und1
    Php 5.4.2 ist laut contao-check aktiviert
    Datenbank läuft auf mysql 5
    Contao liegt Verzeichnis root/contao-3.2.3/
    Die Domaine meiner Homepage zeigt auf root/contao-3.2.3/
    Alles funktioniert. Wenn man www.domain.de aufruft kommt man auf www.domain.de/index.php/home.html.
    Ich möchte jetzt, dass das index.php wegfällt. Also habe ich bei den Einstellung URL umschreiben aktiviert und .html als Suffix angegeben.
    www.domain.de aufrufen liefert immer noch die Startseite, also home.html. Wenn man auf einen anderen Link klickt bleibt die Seite weiß. Ok, war auch zu erwarten, weil die .htaccess noch nicht umbenannt war.
    Also das .default entfernt. Nun kommt der Fehler aus dem Titel des Fadens. Ich habe wirklich 3h versucht eine Lösung des Problem zu finden und komme einfach nicht weiter.
    Ich habe die Seite: http://de.contaowiki.org/1_und_1_Internet verwendet außerdem den gepinnten Faden in diesem Subforum. Und natürlich andere Fäden mit einem ähnlichen Problem besucht.
    Ich zeig euch erstma meine .htaccess
    PHP-Code:
    ##
    # Contao Open Source CMS
    # Copyright (C) 2005-2011 Leo Feyer
    #
    # Formerly known as TYPOlight Open Source CMS.
    #
    # This program is free software: you can redistribute it and/or
    # modify it under the terms of the GNU Lesser General Public
    # License as published by the Free Software Foundation, either
    # version 3 of the License, or (at your option) any later version.

    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
    # Lesser General Public License for more details.

    # You should have received a copy of the GNU Lesser General Public
    # License along with this program. If not, please visit the Free
    # Software Foundation website at <http://www.gnu.org/licenses/>.
    #
    # PHP version 5
    # @copyright  Leo Feyer 2005-2011
    # @author     Leo Feyer <http://www.contao.org>
    # @license    LGPL
    ##
    AddType x-mapp-php6 .php
    AddHandler x
    -mapp-php6 .php
    ##
    # Disable ETags
    # @see http://developer.yahoo.com/performance/rules.html#etags
    ##
    FileETag None
     
    ##
    # Prevent access to the Contao template files
    ##
    <FilesMatch "\.(tpl|html5|xhtml)$">
      
    Order allow,deny
      Deny from all
    </FilesMatch>
     
    <
    IfModule mod_mime.c>
     
      
    ##
      # Serve the correct content type for .htc files (CSS3 PIE)
      # @see http://css3pie.com/documentation/known-issues/#content-type
      ##
      
    AddType text/x-component .htc
     
    </IfModule>
     
    <
    IfModule mod_deflate.c>
     
      
    ##
      # Use mod_deflate to compress JavaScript, CSS, XML, HTML and PHP files.
      # @see http://developer.yahoo.com/performance/rules.html#gzip
      ##
      
    <FilesMatch "\.(css|js|xml|html?|php)$">
        
    SetOutputFilter DEFLATE
      
    </FilesMatch>
     
    </
    IfModule>
     
    <
    IfModule mod_headers.c>
     
      
    ##
      # Disable ETags
      # @see http://developer.yahoo.com/performance/rules.html#etags
      ##
      
    Header unset ETag
     
      
    ##
      # Add a Vary Accept-Encoding header for the compressed resources. If you
      # modify the file types above, make sure to change them here accordingly.
      # @see http://developer.yahoo.com/performance/rules.html#gzip
      ##
      
    <FilesMatch "\.(js|css|xml|gz)$">
        
    Header append Vary Accept-Encoding
      
    </FilesMatch>
     
    </
    IfModule>
     
    <
    IfModule mod_expires.c>
     
      
    ##
      # Activate the module
      ##
      
    ExpiresActive On
     
      
    ##
      # Specify an expiration 30 days in the future for images, JavaScripts and
      # CSS files. Edit or remove the lines to set up your own expiration logic.
      # @see http://developer.yahoo.com/performance/rules.html#expires
      ##
      
    ExpiresByType image/png A2592000
      ExpiresByType image
    /gif A2592000
      ExpiresByType image
    /jpg A2592000
      ExpiresByType image
    /jpeg A2592000
      ExpiresByType text
    /javascript A2592000
      ExpiresByType application
    /x-javascript A2592000
      ExpiresByType application
    /javascript A2592000
      ExpiresByType text
    /css A2592000
      ExpiresByType image
    /x-icon A2592000
     
    </IfModule>
     
    <
    IfModule mod_rewrite.c>
     
      
    ##
      # Activate the module
      ##
      
    RewriteEngine On
     
      
    ##
      # Set the RewriteBase if your Contao installation is in a subdirectoy and
      # the rewrite rules are not working properly. Usage examples:
      #
      #   RewriteBase /contao-2.9.0
      #   RewriteBase /path/to/contao
      #
      # Uncomment the following line to set the RewriteBase.
      ##
      # RewriteBase /
     
      ##
      # Contao usually does not pass absolute URLs via GET, therefore the
      # following rules block all requests that try to pass a URL or the /etc/
      # directory as parameter (malicious requests).
      ##
      
    RewriteCond %{REQUEST_URI} (ftp|https?):|/etc/ [NC,OR]
      
    RewriteCond %{QUERY_STRING} (ftp|https?):|/etc/ [NC]
      
    RewriteRule .* - [F,L]
     
      
    ##
      # Uncomment the following lines and replace "domain.com" with your domain
      # name to redirect requests without "www" to the correct domain. 
      ##
      #RewriteCond %{HTTP_HOST} ^domain\.com [NC]
      #RewriteRule (.*) http://www.domain.com/$1 [R=301,L]
     
      ##
      # If you cannot use mod_deflate, uncomment the following lines to load a
      # compressed .gz version of the bigger Contao JavaScript and CSS files.
      ##
      #AddEncoding gzip .gz
      #<FilesMatch "\.js\.gz$">
      #  AddType "text/javascript" .gz
      #</FilesMatch>
      #<FilesMatch "\.css\.gz$">
      #  AddType "text/css" .gz
      #</FilesMatch>
      #RewriteCond %{HTTP:Accept-encoding} gzip
      #RewriteCond %{REQUEST_FILENAME} \.(js|css)$
      #RewriteCond %{REQUEST_FILENAME}.gz -f
      #RewriteRule ^(.*)$ $1.gz [QSA,L]
     
      ##
      # Do not rewrite requests for static files or folders such as style sheets,
      # images, movies or text documents.
      ##
      
    RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond 
    %{REQUEST_FILENAME} !-d
     
      
    ##
      # By default, Contao adds ".html" to the generated URLs to simulate static
      # HTML documents. If you change the URL suffix in the back end settings, make
      # sure to change it here accordingly!
      #
      #   RewriteRule .*\.html$ index.php [L]   # URL suffix .html
      #   RewriteRule .* index.php [L]          # No URL suffix
      #   RewriteRule .*\.txt$ index.php [L]    # URL suffix .txt
      #
      # If you are using mod_cache, it is recommended to use the RewriteRule below,
      # which adds the query string to the internal URL:
      # 
      #   RewriteRule (.*\.html)$ index.php/$1 [L]
      #
      # Note that not all environments support mod_rewrite and mod_cache.
      ##
      # RewriteRule .*\.html$ index.php [L]
      # Rewrite TYPOlight URLs
     
      # mit den folgenden zwei Zeilen sollte es immer klappen, notwendig ist im Prinzip
      # nur jeweils eine davon, siehe Erklärung weiter oben
      
    RewriteRule .*$ index.php [L]
      
    RewriteRule (.*\.html)$ index.php/$[L]
     
    </
    IfModule
    Das RewriteBase / habe ich mal auskommentiert und mal nicht. Beides hat nicht funktioniert.
    Ich bin grad echt am verzweifeln. Bitte helft mir.
    Ich kenn mich mit diesen Rewrite rules nicht wirklich aus, aber die Syntax liefert mir keinen Anhaltspunkt, woran es liegen könnt.
    Bitte sagt mir nicht, ich soll den Anbieter wechseln. Der Vertrag läuft erstmal und im schlimmsten Fall lass ich das index.php halt stehen.
    Vielen Dank für die Mühe ich muss jetzt erstmal ins Bett..

  2. #2
    Wandelndes Contao-Lexikon Avatar von tab
    Registriert seit
    22.10.2013.
    Beiträge
    10.078
    Contao-Projekt unterstützen

    Support Contao

    Standard

    Das sieht mir nach einer älteren .htaccess Datei aus, also nicht die basierend auf der aktuellen, die im runtergeladenen Archiv enthalten ist (.htaccess.default). Nimm die einfach mal und benenne sie um in ".htaccess".
    Ich habe auch eine Installation bei 1&1 und benutze die Umschreibung mit ".html", so wie du es ja auch haben möchtest, wenn ich dich richtig verstehe.
    Wenn ich mich recht entsinne, musste ich an der Default-Datei gar nichts ändern. Auch den Safemode-Hack braucht man in aller Regel nicht bei 1&1, auch wenn der Check was an den Dateirechten rummeckert und behauptet, man brauche den SMH.

Aktive Benutzer

Aktive Benutzer

Aktive Benutzer in diesem Thema: 1 (Registrierte Benutzer: 0, Gäste: 1)

Lesezeichen

Lesezeichen

Berechtigungen

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