Contao-Hosting bei 1&1

Einklappen
X
 
  • Zeit
  • Anzeigen
Alles löschen
neue Beiträge
  • bamboo
    Contao-Nutzer
    • 02.05.2012
    • 9

    #286
    Hallo xchs,

    habe aus einem jungfräulichen contao-Download die ModuleNewsReader.php hochgeladen, jetzt wird sie im contao-check nicht mehr bemängelt. Ansonsten scheint wirklich alles zu funktionieren, vielen Dank nochmal, echt ein Super-Forum hier!

    Kommentar

    • Franko
      Contao-Urgestein
      • 22.06.2009
      • 1521

      #287
      Hallo,
      wir haben einige Contao Umsetzungen auf 1&1 Kunden Paketen laufen.

      Hinsichtlich der Contao 3er Version fehlt bis dato die korrekte PHP Version (5.3) auf den Shared Hosting Angeboten.
      Nachfragen bei diesem Hoster ergaben auch keine eindeutigen Aussagen -
      den sogenannten PHP Dev Modus kann man nicht gebrauchen.

      Hat die Community hier evtl. aktuelle Infos?
      Frank
      Freelancer, Digital Design Enthusiast, Contao Aficionado and Tutorial Junkie - Carpe diem ...

      Kommentar

      • Hauge
        Contao-Fan
        • 31.01.2010
        • 643

        #288
        Komprimierung via htaccess - contao > 2.10 klappt nicht

        Hallo zusammen,

        ich versuche derzeit die Komprimierung über die htaccess auf einer 1&1 Installation herzustellen.
        Laut google page speed ist keine Komprimierung aktiviert.
        Meine htaccess:
        Code:
        ErrorDocument 404 /seite-nicht-gefunden.html
        ErrorDocument 403 /zugriff-verweigert.html
        FileETag None
        <FilesMatch "\.(tpl|html5|xhtml)$">
          Order allow,deny
          Deny from all
        </FilesMatch>
        <IfModule mod_mime.c>
          AddType text/x-component .htc
        </IfModule>
         <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]
        <IfModule mod_deflate.c>
          <FilesMatch "\.(css|js|xml|html?|php)$">
            SetOutputFilter DEFLATE
          </FilesMatch>
        </IfModule>
        <IfModule mod_headers.c>
         Header unset ETag
          <FilesMatch "\.(js|css|xml|gz)$">
            Header append Vary Accept-Encoding
          </FilesMatch>
        </IfModule>
        <IfModule mod_expires.c>
          ExpiresActive On
          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>
          RewriteEngine On
          RewriteBase /
          RewriteCond %{REQUEST_URI} (ftp|https?):|/etc/ [NC,OR]
          RewriteCond %{QUERY_STRING} (ftp|https?):|/etc/ [NC]
          RewriteRule .* - [F,L]
          RewriteCond %{HTTP_HOST} ^domain\.de [NC]
          RewriteRule (.*) http://www.domain.de/$1 [R=301,L]
          AddEncoding gzip .gz
          RewriteCond %{REQUEST_FILENAME} !-f
          RewriteCond %{REQUEST_FILENAME} !-d
          RewriteRule .*$ index.php [L]
        </IfModule>
        Da ich wirklich kein htaccess - Kenner bin bitte ich um kurze Hilfe...

        Gruß
        Hauge

        Kommentar

        • Tammy
          Contao-Nutzer
          • 29.06.2012
          • 6

          #289
          install.php wird nicht aufgerufen

          Hallo,
          ich habe gerade versucht eine contao-Installation (Version 2.11.3) von webspace4all zu 1&1 umzuziehen. Die install.php wird nicht angezeigt, sondern es kommt ein fehler 404, obwohl ich pph5 eingestellt habe und die htaccess geändert habe, wie ich es hier im Forum gelesen habe. Nachdem ich stundenlang alles Mögliche ausprobiert habe, weiß ich nicht mehr weiter. Das Forum habe ich auch schon hoch und runter gelesen, aber ich bin Anfänger.
          Die htaccess-Datei lautet jetzt:
          Code:
          AddType x-mapp-php5 .php
          AddHandler x-mapp-php5 .php
          ##
          # Contao Open Source CMS
          # Copyright (C) 2005-2012 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-2012
          # @author     Leo Feyer <http://www.contao.org>
          # @license    LGPL
          ##
          
          ##
          # Disable ETags
          # @see [url]http://developer.yahoo.com/performance/rules.html#etags[/url]
          ##
          FileETag None
          <IfModule mod_headers.c>
            Header unset ETag
          </IfModule>
          
          ##
          # Prevent access to the Contao template files
          ##
          <FilesMatch "\.(tpl|html5|xhtml)$">
            Order allow,deny
            Deny from all
          </FilesMatch>
          
          ##
          # Set the proper MIME types
          # @see [url]https://github.com/h5bp/html5-boilerplate[/url]
          ##
          <IfModule mod_mime.c>
            # JavaScript
            AddType application/javascript              js jsonp
            AddType application/json                    json
            # Audio
            AddType audio/ogg                           oga ogg
            AddType audio/mp4                           m4a f4a f4b
            # Video
            AddType video/ogg                           ogv
            AddType video/mp4                           mp4 m4v f4v f4p 
            AddType video/webm                          webm
            AddType video/x-flv                         flv
            # SVG
            AddType image/svg+xml                       svg svgz
            AddEncoding gzip                            svgz
            # Webfonts
            AddType application/vnd.ms-fontobject       eot
            AddType application/x-font-ttf              ttf ttc
            AddType font/opentype                       otf
            AddType application/x-font-woff             woff
            # Assorted types
            AddType image/x-icon                        ico
            AddType image/webp                          webp
            AddType text/cache-manifest                 appcache manifest
            AddType text/x-component                    htc
            AddType application/xml                     rss atom xml rdf
            AddType application/x-web-app-manifest+json webapp
            AddType text/x-vcard                        vcf
            AddType application/x-shockwave-flash       swf
          </IfModule>
          
          ##
          # Gzip compression
          # @see [url]https://github.com/h5bp/html5-boilerplate[/url]
          ##
          <IfModule mod_deflate.c>
            # Current Apache versions (>= 2.2)
            <IfModule filter_module>
              FilterDeclare   COMPRESS
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/html
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/css
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/plain
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/xml
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $text/x-component
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/javascript
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/json
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/xml
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/xhtml+xml
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/rss+xml
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/atom+xml
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/vnd.ms-fontobject
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $image/svg+xml
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $image/x-icon
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $application/x-font-ttf
              FilterProvider  COMPRESS  DEFLATE resp=Content-Type $font/opentype
              FilterChain     COMPRESS
              FilterProtocol  COMPRESS  DEFLATE change=yes;byteranges=no
            </IfModule>
            # Legacy Apache versions
            <IfModule !mod_filter.c>
              AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
              AddOutputFilterByType DEFLATE application/javascript
              AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
              AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
              AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
            </IfModule>
          </IfModule>
          
          ##
          # Expires headers (for better cache control)
          # @see [url]https://github.com/h5bp/html5-boilerplate[/url]
          ##
          <IfModule mod_expires.c>
            ExpiresActive on
            ExpiresByType text/cache-manifest           "access plus 0 seconds"
            ExpiresByType text/html                     "access plus 0 seconds"
            # Data
            ExpiresByType text/xml                      "access plus 0 seconds"
            ExpiresByType application/xml               "access plus 0 seconds"
            ExpiresByType application/json              "access plus 0 seconds"
            # Feed
            ExpiresByType application/rss+xml           "access plus 1 hour"
            ExpiresByType application/atom+xml          "access plus 1 hour"
            # Media: images, video, audio
            ExpiresByType image/gif                     "access plus 1 month"
            ExpiresByType image/png                     "access plus 1 month"
            ExpiresByType image/jpg                     "access plus 1 month"
            ExpiresByType image/jpeg                    "access plus 1 month"
            ExpiresByType image/x-icon                  "access plus 1 month"
            ExpiresByType video/ogg                     "access plus 1 month"
            ExpiresByType audio/ogg                     "access plus 1 month"
            ExpiresByType video/mp4                     "access plus 1 month"
            ExpiresByType video/webm                    "access plus 1 month"
            # HTC files  (css3pie)
            ExpiresByType text/x-component              "access plus 1 month"
            # Webfonts
            ExpiresByType application/x-font-ttf        "access plus 1 month"
            ExpiresByType font/opentype                 "access plus 1 month"
            ExpiresByType application/x-font-woff       "access plus 1 month"
            ExpiresByType image/svg+xml                 "access plus 1 month"
            ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
            # CSS and JavaScript
            ExpiresByType text/css                      "access plus 1 year"
            ExpiresByType application/javascript        "access plus 1 year"
          </IfModule>
          
          ##
          # 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 [url]http://developer.yahoo.com/performance/rules.html#gzip[/url]
          ##
          <IfModule mod_headers.c>
            <FilesMatch "\.(js|css|xml|gz)$">
              Header append Vary Accept-Encoding
            </FilesMatch>
          </IfModule>
          
          ##
          # URL rewriting
          ##
          <IfModule mod_rewrite.c>
            RewriteEngine On
          
            ##
            # Change the RewriteBase if your Contao installation is in a subdirectoy and
            # the rewrite rules are not working properly. Usage examples:
            #
            #   RewriteBase /contao-2.11.0
            #   RewriteBase /path/to/contao
            #
            # Depending on your server, you might have to remove the line entirely. 
            ##
            RewriteBase /
          
            ##
            # 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 aggregated 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. Do not add the URL suffix here!
            ##
            <FilesMatch "\.(htm|php|js|css|htc|png|gif|jpe?g|ico|xml|csv|txt|swf|flv|eot|woff|svg|ttf|pdf|gz)$">
              RewriteEngine Off
            </FilesMatch>
          
            ##
            # 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 .*\.txt$ index.php [L]    # URL suffix .txt
            #   RewriteRule .*\.json$ index.php [L]   # URL suffix .json
            #
            # If you do not want to use an URL suffix at all, you have to add a second
            # line to prevent URLs that point to folders from being rewritten (see #4031).
            #
            #   RewriteCond %{REQUEST_FILENAME} !-d
            #
            # 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.
            ##
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule .*\.html$ index.php [L]
          
            ##
            # The following rules are required if you want to pass the language as first
            # URL parameter (added in Contao 2.11). The first rule rewrites an empty URL
            # to the front end controller, the second one adds a missing trailing slash.
            ##
            RewriteRule ^[a-z]{2}/$ index.php [L]
            RewriteRule ^([a-z]{2})$ $1/ [R=301,L]
          
          </IfModule>
          Liegt hier irgendwo der Fehler?
          Gruss Tammy
          Zuletzt geändert von xchs; 01.07.2012, 00:06. Grund: Code-Formatierung

          Kommentar

          • magicsepp
            Contao-Urgestein
            • 30.01.2011
            • 4138

            #290
            Hallo Tammy

            die Zeile siht so aus:
            PHP-Code:
            AddType application/x-httpd-php53 .php 
            
            und dann erstmal mit contao-check die Installation testen...

            LG

            Kommentar

            • Tammy
              Contao-Nutzer
              • 29.06.2012
              • 6

              #291
              Danke für den Tipp. Ich habe die ersten beiden Zeilen wieder gelöscht und dafür Deine Zeile eingefügt. Jetzt läßt sich das install-Tool aufrufen. Gruss Tammy
              Zuletzt geändert von Tammy; 03.07.2012, 09:01.

              Kommentar

              • Franko
                Contao-Urgestein
                • 22.06.2009
                • 1521

                #292
                Zitat von magicsepp Beitrag anzeigen
                Hallo Tammy

                die Zeile siht so aus:
                PHP-Code:
                AddType application/x-httpd-php53 .php 
                
                und dann erstmal mit contao-check die Installation testen...

                LG
                Hallo,
                ich hatte bis dato ebenfalls immer die von 1und1 empfohlenen Angaben der Form

                PHP-Code:
                ## Provider Settings ##
                  AddType x-mapp-php5 .php
                  AddHandler x-mapp-php5 .php 
                
                gesetzt. Dies lief bisher ohne Probleme.

                Bewirkt die Angabe

                PHP-Code:
                AddType application/x-httpd-php53 .php 
                
                tatsächlich die Umstellung auf eine php 5.3 Version (Conato 3)? Habe hierzu nichts bei dem Provider gefunden.

                Frank
                Freelancer, Digital Design Enthusiast, Contao Aficionado and Tutorial Junkie - Carpe diem ...

                Kommentar

                • pipkin
                  Contao-Fan
                  • 12.04.2011
                  • 599

                  #293
                  Subdomain bei 1und1 -&gt; statt index.php (Startseite) wird Seite nicht gefunden

                  Moin,

                  habe mir hier allerlei zu 1und1 durchgelesen und hoffentlich nicht übersehen, dass das bereits irgendwo behandelt wurde.

                  Ich habe ein Problem mit meine Contao 2.11.4-Installation bei 1und1. Für die Installation habe ich eine Subdomain angelegt, die direkt auf das Verzeichnis mit der Contao-Installation zeigt. Installation und auch erste Konfiguration/Einrichtung von Seiten lief bisher ohne Probleme. Wenn ich nun aber mit "meine.subdomain.de" die Website aufrufen will, bekomme ich eine Fehlerseite "Seite nicht gefunden" von 1und1 zurück.
                  Wenn ich die Seite mit "meine.subdomain.de/index.php" aufrufe, erscheint die gewünschte Startseite der Website.
                  Wenn ich die Seite mit "meine.subdomain.de/index.html" aufrufe, kommt eine Meldung 300 (Multiple Choices)

                  "The document name you requested (/index.html) could not be found on this server. However, we found documents with names similar to the one you requested.
                  Available documents:/index.php (common basename)."

                  Ich verstehe das nicht - denn unter normalen Domains, also nicht Subdomains, greift sich 1und1 automatisch das, was gerade da ist - eine index, egal ob php oder html, und sicher ist die Priorität irgendwo geregelt.

                  Irgendjemand eine Idee, wie/wo man da was einstellt, damit das funktioniert? ;-)

                  Danke!
                  pipkin

                  EDIT:
                  Es hat sich von selbst gelöst: es war nur ein sehr hartnäckiges Cache-Problem!
                  Gott wie peinlich ...
                  Zuletzt geändert von pipkin; 10.07.2012, 18:34.

                  Kommentar

                  • SCSA91
                    Gesperrt
                    • 09.07.2012
                    • 8

                    #294
                    Hallo,

                    ich habe schon lange mein Webspace bei 1&1 und bin damit auch sehr zufrieden. Bis jetzt hatte ich nie Probleme, auch nicht mit dem Contao System. Sie bieten auch relativ günstige Preise an und der Service ist auch Okay, ihr könnt also nichts falsch machen.

                    Admin: SCSA1 bitte ignorieren, war ein Spammer

                    Kommentar

                    • Hauge
                      Contao-Fan
                      • 31.01.2010
                      • 643

                      #295
                      @SCSA1
                      Meine Erfahrungen sind da ein bisschen anders:
                      -Komprimierung funktioniert nicht (oder zumindest nur bedingt - habe zumindest den Trick noch nicht raus)
                      -ohne htaccess Anpassung läuft es definitiv nicht
                      -bei größeren Projekten hat man ständig Arbeitsspeicherprobleme auch mit den neuen "besseren" Paketen
                      -Projekte die eine starke Serverperformance benötigen laufen sporadisch nur mit eingeschränkter Geschwindigkeit

                      und da könnte man noch vieles aufzählen...

                      Gruß
                      Hauge

                      Kommentar

                      • KATgirl
                        Contao-Urgestein
                        • 31.03.2010
                        • 1579

                        #296
                        Contao 3.X auf 1und1 Webhostings

                        So ich habe es auch gerade mal versucht, so Wie es aussieht bietet 1und1 kein PHP 5.3 an dafür aber PHP 5.4 um so besser ;-)

                        Also bitte folgendes in die .htaccess eintragen und man hat PHP 5.4 aktiviert.

                        Code:
                        ##
                        # 1und1 Umstellung auf PHP5.4
                        ##
                        AddType x-mapp-php6 .php
                        AddHandler x-mapp-php6 .php
                        Gruß Kirsten

                        P.S. damit klappts dann auch mit Contao 3.0
                        - GitHub
                        - Kontaktanfragen

                        "Ein Lächeln ist die kürzeste Entfernung zwischen zwei Menschen." Victor Borge

                        Kommentar

                        • ansap
                          Contao-Nutzer
                          • 16.08.2012
                          • 9

                          #297
                          Contao 2.10.4 zeigt BE, doch kein FE. HTTP Fehler 404

                          Hallo zusammen,
                          bin neu mit Contao.

                          Kurzinfo:
                          Meine bisherigen Websites sind noch reine "statische" HTML-Seiten und liegen als solche auf dem Webspace.
                          Habe schon etliche Jahre das Homepage Bussines Paket bei 1und1.
                          Die Websites sollen nun nach und nach auf Contao laufen/umgestell werden, und ich versuche nun schon seit zwei Wochen eine der Websites über Contao zum laufen zu bringen (in einer Subdomain). Contao mit der Website ist hochgeladen, der Ordner ist als Subdomain erreichbar. nach dem Installtool ist alles i.O., also mit grünem Hacken. Die Site hat mir ein Bekannter erstellt und bei ihm, auf seinem Linux-Rechner läuft sie auch. SQL-Datenbank zeigt die Füllung/Daten als vorhanden an, doch bei jedem Versuch diese Website zu starten kommt immer der 404-Fehler.

                          Hab alle Tipps von Nina zu Contao und 1und1 befolgt (außer den SMH, den es offenbar nicht mehr braucht), doch wird meine Website nicht angezeigt.
                          (In der .htaccess stehen über den Einträgen der ursprünglichen .htaccess.default die beiden Zeilen, wie von Nina empfohlen.
                          In der contao-check.php ist alles grün, und SOAP-Extension ist auf on. Alle Dateien sind auf CHMOD 644, und die Ordner auf 755.
                          Wie im Titel geschrieben, komme ich ins Backend, jedoch nicht ins Frontend (404).
                          Im Backend werden keine Themes und keine Seitenstruktur angezeigt.

                          Allerdings weiß ich nicht, ob soap schon installiert ist, und wenn nicht, wie ich soap herbekomme/installiere?
                          Und ob das der Fehler sein kann.

                          Danke schon mal für euere Tipps und Hilfen.

                          LG,

                          ansap

                          Kommentar

                          • magicsepp
                            Contao-Urgestein
                            • 30.01.2011
                            • 4138

                            #298
                            dann kann es eigentlich nur noch an der .htaccess (rewrite rules) der Einstellung "Relativer Pfad zum Contao-Verzeichnis" liegen...
                            die Datenbankverbindung ist okay?

                            Kommentar

                            • ansap
                              Contao-Nutzer
                              • 16.08.2012
                              • 9

                              #299
                              .htaccess

                              Hallo magicsepp, danke für deine schnelle Antwort.
                              Zitat von magicsepp Beitrag anzeigen
                              dann kann es eigentlich nur noch an der .htaccess (rewrite rules) ...
                              Hab meine .htaccess angehängt. Nach meiner Meinung ist die so, wie von Nina am Anfang dieses Threates empfohlen. Die Rewrite Rules sagen mir nichts.?

                              Zitat von magicsepp Beitrag anzeigen
                              ... der Einstellung "Relativer Pfad zum Contao-Verzeichnis" liegen...
                              Mein Contao ist direkt in einer Subdomain. D.H. alles was in dem Contaoverzeichnis war habe ich in einen Ordner auf meinem Webspace kopiert, diesen Ordner als Subdomain "registriert". So ist das install-Tool dort zugänglich: http://contao.domain.de/contao/install.php.
                              Wo und wie der relative Pfad dann eingetragen sein muss?!?

                              Zitat von magicsepp Beitrag anzeigen
                              die Datenbankverbindung ist okay?
                              Laut install-Tool ja. Wie sehe ich das sonst noch?

                              Meine .htaccess konnte ich nicht als Dateianhang mitschicken:
                              Code:
                              AddType x-mapp-php5 .php
                              AddHandler x-mapp-php5 .php
                              ##
                              # 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
                              ##
                              
                              ##
                              # Disable ETags
                              # @see [url]http://developer.yahoo.com/performance/rules.html#etags[/url]
                              ##
                              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 [url]http://css3pie.com/documentation/known-issues/#content-type[/url]
                                ##
                                AddType text/x-component .htc
                              
                              </IfModule>
                              
                              <IfModule mod_deflate.c>
                              
                                ##
                                # Use mod_deflate to compress JavaScript, CSS, XML, HTML and PHP files.
                                # @see [url]http://developer.yahoo.com/performance/rules.html#gzip[/url]
                                ##
                                <FilesMatch "\.(css|js|xml|html?|php)$">
                                  SetOutputFilter DEFLATE
                                </FilesMatch>
                              
                              </IfModule>
                              
                              <IfModule mod_headers.c>
                              
                                ##
                                # Disable ETags
                                # @see [url]http://developer.yahoo.com/performance/rules.html#etags[/url]
                                ##
                                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 [url]http://developer.yahoo.com/performance/rules.html#gzip[/url]
                                ##
                                <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 [url]http://developer.yahoo.com/performance/rules.html#expires[/url]
                                ##
                                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.
                                ##
                                # Herf** 12.08.2012 Kommentar vor  RewriteBase / entfernt
                                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]
                              
                              </IfModule>
                              Zuletzt geändert von xchs; 18.08.2012, 19:00. Grund: Code-Formatierung

                              Kommentar

                              • magicsepp
                                Contao-Urgestein
                                • 30.01.2011
                                • 4138

                                #300
                                checkmal den folgenden Eintrag in der localconfig im Ordner system/config
                                $GLOBALS['TL_CONFIG']['websitePath'] = ' ';

                                Kommentar

                                Lädt...