Sehr schwankende Ladezeiten!

Thema wurde von SD, 1. März 2019 erstellt.

  1. Anonymous

    Anonymous Erfahrener Benutzer

    Registriert seit:
    19. Juni 2012
    Beiträge:
    4.831
    Danke erhalten:
    1.122
    Danke vergeben:
    947
    Dies hier wäre die passende .htaccess für dich. Die ist für dein Hauptverzeichnis. Bitte vorher eine Sicherung der alten anlegen.

    Code:
    # -----------------------------------------------------------------------------
    # Important Notice on own Redirects/Rewrites
    # -----------------------------------------------------------------------------
    
    ## It's easily possible to put own Redirects and Rewrites into this file. Please note our comments hinting the best place to do this below.
    
    # -----------------------------------------------------------------------------
    # Htaccess Version
    # -----------------------------------------------------------------------------
    
    ## By checking this variable from the Shop we can guess if htaccess Directives are current
    ## Since some hosters do provide apache mod_env and others only mod_envif we need to do some doubling
    
    <IfModule mod_env.c>
        SetEnv gambio_htaccessVersion 2.7
        SetEnv gambio_mod_env_working 1
    </IfModule>
    
    <IfModule !mod_env.c>
        <IfModule mod_setenvif.c>
            SetEnvIf ENV ^(.*)$ gambio_htaccessVersion=2.7
            SetEnvIf ENV ^(.*)$ gambio_mod_envif_working=1
        </IfModule>
    </IfModule>
    
    # -----------------------------------------------------------------------------
    # Disable ETags for Performance
    # -----------------------------------------------------------------------------
    
    <IfModule mod_headers.c>
       
        <IfModule mod_env.c>
            SetEnv gambio_mod_headers_working 1
        </IfModule>
    
        <IfModule !mod_env.c>
            <IfModule mod_setenvif.c>
                SetEnvIf ENV ^(.*)$ gambio_mod_headers_working=1
            </IfModule>
        </IfModule>
    
        Header unset ETag
    
    </IfModule>
    
    # `FileETag None` doesn't work in all cases.
    
    FileETag None
    
    # -----------------------------------------------------------------------------
    # Set Default Encoding for static HTML Files, JSON and friends to standards
    # -----------------------------------------------------------------------------
    
    AddDefaultCharset UTF-8
    
    <IfModule mod_mime.c>
    
        <IfModule mod_env.c>
            SetEnv gambio_mod_mime_working 1
        </IfModule>
    
        <IfModule !mod_env.c>
            <IfModule mod_setenvif.c>
                SetEnvIf ENV ^(.*)$ gambio_mod_mime_working=1
            </IfModule>
        </IfModule>
    
        AddCharset utf-8 .atom \
                .bbaw \
                .geojson \
                .json \
                .jsonld \
                .manifest \
                .rdf \
                .rss \
                .topojson \
                .vtt \
                .webapp \
                .webmanifest \
                .xloc \
                .xml
    </IfModule>
    
    # ----------------------------------------------------------------------
    # MIME types                                                        |
    # ----------------------------------------------------------------------
    
    # There are quite some servers serving resources without the proper media types (f.k.a. MIME types)
    # breaking security,caching,compression
    
    <IfModule mod_mime.c>
    
        # Data interchange
        AddType application/atom+xml                        atom
        AddType application/json                            json map topojson
        AddType application/ld+json                         jsonld
        AddType application/rss+xml                         rss
        AddType application/vnd.geo+json                    geojson
        AddType application/xml                             rdf xml
    
        # JavaScript
        AddType application/javascript                      js
    
        # Manifest files
        AddType application/manifest+json                   webmanifest
        AddType application/x-web-app-manifest+json         webapp
        AddType text/cache-manifest                         appcache
    
        # Media files
        AddType audio/mp4                                   f4a f4b m4a
        AddType audio/ogg                                   oga ogg opus
        AddType image/bmp                                   bmp
        AddType image/svg+xml                               svg svgz
        AddType image/webp                                  webp
        AddType video/mp4                                   f4v f4p m4v mp4
        AddType video/ogg                                   ogv
        AddType video/webm                                  webm
        AddType video/x-flv                                 flv
        AddType image/x-icon                                cur ico
    
        # Web fonts
        AddType application/font-woff                       woff
        AddType application/font-woff2                      woff2
        AddType application/vnd.ms-fontobject               eot
        AddType application/x-font-ttf                      ttc ttf
        AddType font/opentype                               otf
    
        # Other
        AddType application/octet-stream                    safariextz
        AddType application/x-bb-appworld                   bbaw
        AddType application/x-chrome-extension              crx
        AddType application/x-opera-extension               oex
        AddType application/x-xpinstall                     xpi
        AddType text/vcard                                  vcard vcf
        AddType text/vnd.rim.location.xloc                  xloc
        AddType text/vtt                                    vtt
        AddType text/x-component                            htc
    
    </IfModule>
    
    # -----------------------------------------------------------------------------
    # Compression                                                       
    # -----------------------------------------------------------------------------
    
    <IfModule mod_deflate.c>
       
        <IfModule mod_env.c>
            SetEnv gambio_mod_deflate_working 1
        </IfModule>
    
        <IfModule !mod_env.c>
            <IfModule mod_setenvif.c>
                SetEnvIf ENV ^(.*)$ gambio_mod_deflate_working=1
            </IfModule>
        </IfModule>
    
        <IfModule mod_headers.c>
            SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)\s*,?\s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
            RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
        </IfModule>
    
        <IfModule mod_filter.c>
    
            <IfModule mod_env.c>
                    SetEnv gambio_mod_filter_working 1
            </IfModule>
    
            <IfModule !mod_env.c>
                <IfModule mod_setenvif.c>
                        SetEnvIf ENV ^(.*)$ gambio_mod_filter_working=1
                </IfModule>
            </IfModule>
    
            AddOutputFilterByType DEFLATE "application/atom+xml" \
                                          "application/javascript" \
                                          "application/json" \
                                          "application/ld+json" \
                                          "application/manifest+json" \
                                          "application/rdf+xml" \
                                          "application/rss+xml" \
                                          "application/schema+json" \
                                          "application/vnd.geo+json" \
                                          "application/vnd.ms-fontobject" \
                                          "application/x-font-ttf" \
                                          "application/x-javascript" \
                                          "application/x-web-app-manifest+json" \
                                          "application/xhtml+xml" \
                                          "application/xml" \
                                          "font/eot" \
                                          "font/opentype" \
                                          "image/bmp" \
                                          "image/svg+xml" \
                                          "image/vnd.microsoft.icon" \
                                          "image/x-icon" \
                                          "text/cache-manifest" \
                                          "text/css" \
                                          "text/html" \
                                          "text/javascript" \
                                          "text/plain" \
                                          "text/vcard" \
                                          "text/vnd.rim.location.xloc" \
                                          "text/vtt" \
                                          "text/x-component" \
                                          "text/x-cross-domain-policy" \
                                          "text/xml"
        </IfModule>
    
        <IfModule mod_mime.c>
            AddEncoding gzip svgz
        </IfModule>
    
    </IfModule>
    
    # -----------------------------------------------------------------------------
    # Caching                                                           
    # -----------------------------------------------------------------------------
    
    <IfModule mod_expires.c>
       
        <IfModule mod_env.c>
                SetEnv gambio_mod_expires_working 1
        </IfModule>
    
        <IfModule !mod_env.c>
            <IfModule mod_setenvif.c>
                    SetEnvIf ENV ^(.*)$ gambio_mod_expires_working=1
            </IfModule>
        </IfModule>
           
        ExpiresActive On
    
        # -----------------------------------------------------------------------------
        # Really cache anything
        # -----------------------------------------------------------------------------
    
        ExpiresDefault "access plus 1 month"
       
        # -----------------------------------------------------------------------------
        # Definitons for tweakers
        # -----------------------------------------------------------------------------
    
        # CSS
        ExpiresByType text/css "access plus 1 month"
       
        # Favicon (cannot be renamed!) and cursor images
        ExpiresByType image/vnd.microsoft.icon "access plus 1 month"
        ExpiresByType image/x-icon "access plus 1 month"
       
        # Media files
        ExpiresByType audio/ogg "access plus 1 month"
        ExpiresByType image/bmp "access plus 1 month"
        ExpiresByType image/gif "access plus 1 month"
        ExpiresByType image/jpeg "access plus 1 month"
        ExpiresByType image/png "access plus 1 month"
        ExpiresByType image/svg+xml "access plus 1 month"
        ExpiresByType image/webp "access plus 1 month"
        ExpiresByType video/mp4 "access plus 1 month"
        ExpiresByType video/ogg "access plus 1 month"
        ExpiresByType video/webm "access plus 1 month"
           
        # Web fonts
        ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
        ExpiresByType font/eot "access plus 1 month"
        ExpiresByType font/opentype "access plus 1 month"
        ExpiresByType application/x-font-ttf "access plus 1 month"
        ExpiresByType application/font-woff "access plus 1 month"
        ExpiresByType application/x-font-woff "access plus 1 month"
        ExpiresByType font/woff "access plus 1 month"
        ExpiresByType application/font-woff2 "access plus 1 month"
       
        # JavaScript
        ExpiresByType application/javascript "access plus 1 month"
        ExpiresByType application/x-javascript "access plus 1 month"
        ExpiresByType text/javascript "access plus 1 month"
       
        # -----------------------------------------------------------------------------
        # Exclude these mimetypes from caching, these always need to be current
        # -----------------------------------------------------------------------------
       
        # XML Files like the Sitemap
        ExpiresByType application/xml "access plus 0 seconds"
    
        # Styleedit Output, Statistics, Shopintercommunication, API Output
        ExpiresByType application/json "access plus 0 seconds"
    
        # All kinds of exports
        ExpiresByType text/csv "access plus 0 seconds"
       
    </IfModule>
    
    # -----------------------------------------------------------------------------
    # Security                                                           
    # -----------------------------------------------------------------------------
    
    <ifModule mod_headers.c>
    
        Header set X-Content-Type-Options: nosniff
    
    </ifModule>
    
    # -----------------------------------------------------------------------------
    # Rewrites: SEOBoost, Security + Image Processing on the fly
    # -----------------------------------------------------------------------------
    
    <IfModule mod_rewrite.c>
    
        <IfModule mod_env.c>
            SetEnv gambio_mod_rewrite_working 1
        </IfModule>
    
        <IfModule !mod_env.c>
            <IfModule mod_setenvif.c>
                SetEnvIf ENV ^(.*)$ gambio_mod_rewrite_working=1
            </IfModule>
        </IfModule>
    
        RewriteEngine on
    
        ##some Hosters like 1&1 need the following line to be enabled, else all the following will fail all the time
    
        RewriteBase /
    
        # -----------------------------------------------------------------------------
        # Dynamically detect Rewritebase and URI part past Rewritebase
        # -----------------------------------------------------------------------------
    
        RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
        RewriteRule ^(.*)$ - [E=SUFFIX:%2]
    
        RewriteCond %{REQUEST_URI}::$1 ^(.*?/)(.*)::\2$
        RewriteRule ^(.*)$ - [E=BASE:%1]
    
        # -----------------------------------------------------------------------------
        # Passthrough of HTTP Auth Headers to PHP on Hosts using PHP FPM/FCGI
        # -----------------------------------------------------------------------------
    
        RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    
        # -----------------------------------------------------------------------------
        # Security: Deny direct access to important system folders
        # -----------------------------------------------------------------------------
    
        RewriteCond %{ENV:SUFFIX} ^admin/backups/.* [or]
        RewriteCond %{ENV:SUFFIX} ^cache/.* [or]
        RewriteCond %{ENV:SUFFIX} ^debug/.* [or]
        RewriteCond %{ENV:SUFFIX} ^download/.* [or]
        RewriteCond %{ENV:SUFFIX} ^export/inventory/.* [or]
        RewriteCond %{ENV:SUFFIX} ^export/invoice/.* [or]
        RewriteCond %{ENV:SUFFIX} ^export/packsingslip/.* [or]
        RewriteCond %{ENV:SUFFIX} ^export/sepa/.* [or]
        RewriteCond %{ENV:SUFFIX} ^gm/customer_uploads/.* [or]
        RewriteCond %{ENV:SUFFIX} ^GProtector/.* [or]
        RewriteCond %{ENV:SUFFIX} ^GXEngine/.* [or]
        RewriteCond %{ENV:SUFFIX} ^GXMainComponents/.* [or]
        RewriteCond %{ENV:SUFFIX} ^includes/.* [or]
        RewriteCond %{ENV:SUFFIX} ^logfiles/.* [or]
        RewriteCond %{ENV:SUFFIX} ^templates_c/.* [or]
        RewriteCond %{ENV:SUFFIX} ^uploads/.* [or]
        RewriteCond %{ENV:SUFFIX} ^version_info/.*
        RewriteRule ^(.*)$ - [R=403,L]
    
        # -----------------------------------------------------------------------------
        # Image Processing on the fly
        # -----------------------------------------------------------------------------
    
            ## if request destination is a product image and size not bigger than 0 try to create the sized image
            RewriteCond %{REQUEST_FILENAME} ".*?\/images\/product_images\/.*\.(?:gif|jpe?g|png)$" [NC]
            RewriteCond %{REQUEST_FILENAME} !-s
            RewriteRule (\.gif|\.jpe?g|\.png)$ %{ENV:BASE}shop.php?do=ImageRequest [L,NC]
    
        # -----------------------------------------------------------------------------
        # Put your own Redirects and Rewrites here - Start
        # -----------------------------------------------------------------------------
       
        # Example Redirect
        # Redirect 301 /oldlocation http://www.domain.com/newlocation
       
        # -----------------------------------------------------------------------------
        # Put your own Redirects and Rewrites here - End
        # -----------------------------------------------------------------------------
    
        # -----------------------------------------------------------------------------
        # Gambio SEO Boost URLs
        # -----------------------------------------------------------------------------
    
            ## if request destination is any of these filetypes or located in any of these folders stop processing rewrite
            RewriteCond %{REQUEST_FILENAME} ^(.*)\.(php|css|js|gif||jpe?g|png)$ [NC] [or]
            RewriteCond %{REQUEST_URI} .*?\/(?:admin|images|public|templates)\/.
            RewriteRule ^(.+) - [L]
    
            ## if request destination is an existing directory, file or link stop processing rewrite
            RewriteCond %{REQUEST_FILENAME} -d [or]
            RewriteCond %{REQUEST_FILENAME} -f [or]
            RewriteCond %{REQUEST_FILENAME} -l
            RewriteRule ^(.+) - [L]
    
            #if request destination is a php file in root dir and language code in url is present lets go there
            RewriteRule ^[a-z]{2}/([A-Za-z0-9_/-]+)\.php.* %{ENV:BASE}$1.php?%{QUERY_STRING} [PT,L]
                   
            ##If all of these conditions didn't stop us, lets rewrite
    
            ##boosted CONTENT
            RewriteRule (^[A-Za-z]{2}/){0,1}(.*/)?info/([A-Za-z0-9_/-]+)\.html.* %{ENV:BASE}shop_content.php?gm_boosted_content=$3&%{QUERY_STRING} [PT,L]
            RewriteRule (^[A-Za-z]{2}/){0,1}(.*/)?popup/([A-Za-z0-9_/-]+)\.html.* %{ENV:BASE}popup_content.php?gm_boosted_content=$3&%{QUERY_STRING} [PT,L]
    
            ##boosted PRODUCTS
            RewriteRule (^[A-Za-z]{2}/){0,1}([A-Za-z0-9_/-]+)\.html %{ENV:BASE}product_info.php?gm_boosted_product=$2&%{QUERY_STRING} [PT,L]
    
            ##boosted CATEGORIES
            RewriteRule (^[A-Za-z]{2}/){0,1}([A-Za-z0-9_\/-]*)(\?*.*|\z) %{ENV:BASE}index.php?gm_boosted_category=$2&%{QUERY_STRING} [L]
    
    </IfModule>
    
     
  2. SD

    SD Erfahrener Benutzer

    Registriert seit:
    11. Januar 2017
    Beiträge:
    252
    Danke erhalten:
    23
    Danke vergeben:
    83
    Einfach Überschreiben?
     
  3. Anonymous

    Anonymous Erfahrener Benutzer

    Registriert seit:
    19. Juni 2012
    Beiträge:
    4.831
    Danke erhalten:
    1.122
    Danke vergeben:
    947
    Tja... Ich weiß auch nicht weiter. Wenn ich du wäre, würde ich:

    • zuerst nochmal ein Ticket aufmachen und freundlich darum bitten, den Shop in Bezug auf die Ladezeiten nochmal anzusehen und um eine Empfehlung zur Performance-Verbesserung bitten
    • Mal kurzfristig für 10 Min in der configure.php alle Domains von https auf http umstellen, caches leeren und dann ausschließen, dass es das Comodo Zertifikat ist das dich ausbremst.
    • Wenn von Gambio als Fehlerursache wieder auf den Hoster verwiesen wird: Einen neuen Hoster ausprobieren :) Du könntest dir bei All-Inkl. mal einen Test-Account besorgen: (Link nur für registrierte Nutzer sichtbar.) Dann mal auf einer Subdomain deinen Shop umziehen, dazu ein kostenloses SSL-Zertifikat von LetsEncrypt (um auszuschließen dass es das SSL Zertifikat von Comodo ist das dich ausbremst)
    • Alternative: Bei deinem Hoster auf ein leistungsstärkerers Paket wechseln
    • Wenn du damit besser fährst, die Domain umziehen und beim alten Hoster kündigen
     
  4. Anonymous

    Anonymous Erfahrener Benutzer

    Registriert seit:
    19. Juni 2012
    Beiträge:
    4.831
    Danke erhalten:
    1.122
    Danke vergeben:
    947
    Kannst du mal probieren, aber scheinbar ist deine htaccess die zu zuletzt gepostet hast doch auch recht akutell.
     
  5. SD

    SD Erfahrener Benutzer

    Registriert seit:
    11. Januar 2017
    Beiträge:
    252
    Danke erhalten:
    23
    Danke vergeben:
    83
    Ticket erstellt, ich warte mal noch etwas ab!

    Danke Dir für deine Mühen....
     
  6. Anonymous

    Anonymous Erfahrener Benutzer

    Registriert seit:
    19. Juni 2012
    Beiträge:
    4.831
    Danke erhalten:
    1.122
    Danke vergeben:
    947
    Berichte mal wie es sich entwickelt!
     
  7. SD

    SD Erfahrener Benutzer

    Registriert seit:
    11. Januar 2017
    Beiträge:
    252
    Danke erhalten:
    23
    Danke vergeben:
    83
    mach ich!

    Es ist nur komisch, dass noch vor 2 Wochen der Shop konstant unter 1 sek. lief und jetzt wieder nicht, wobei ich wirklich nichts verändert habe!
     
  8. Anonymous

    Anonymous Erfahrener Benutzer
    Mitarbeiter

    Registriert seit:
    22. Juni 2011
    Beiträge:
    4.760
    Danke erhalten:
    1.748
    Danke vergeben:
    137
    Ich hab gerade mal etwas in deinem Shop rumgeklickt, um ein eigenes Bild zu bekommen. Wie es aussieht, braucht dein Shop unglaublich lange für alles, was externe Verbindungen erfordert. Man sieht das z.B. gut an der PayPal-Verbindungsprüfung (bei den Entwicklertools auf der Konfigurationsseite). Also, es geht nicht um externe Ressourcen wie Javascripte, die vom Browser geladen werden, sondern um Server-zu-Server-Verbindungen, die vom Shop initiiert werden. Da musst du definitiv deinen Hoster noch einmal drauf ansetzen, da können wir nichts machen; zumindest fällt mir gerade nichts ein, was das auf Shopebene beeinflussen könnte.
     
  9. Kai Schoelzke

    Kai Schoelzke Beta-Held

    Registriert seit:
    30. März 2016
    Beiträge:
    3.803
    Danke erhalten:
    548
    Danke vergeben:
    248
    Das Problem habe ich auch genau vor 2 Wochen bei einem Kunden, wir haben auch kein Problem entdecken können, erst nach einem Umzug zu All-inkl.com läuft der Shop wieder flink und ohne Probleme. Bei welchem Provider hast du deine Seite liegen?
     
  10. SD

    SD Erfahrener Benutzer

    Registriert seit:
    11. Januar 2017
    Beiträge:
    252
    Danke erhalten:
    23
    Danke vergeben:
    83
    Was der Hoster geschrieben hat, siehe Post 1
     
  11. SD

    SD Erfahrener Benutzer

    Registriert seit:
    11. Januar 2017
    Beiträge:
    252
    Danke erhalten:
    23
    Danke vergeben:
    83
    Checkdomain!
     
  12. Anonymous

    Anonymous Erfahrener Benutzer
    Mitarbeiter

    Registriert seit:
    22. Juni 2011
    Beiträge:
    4.760
    Danke erhalten:
    1.748
    Danke vergeben:
    137
    Was ich geschrieben habe, siehe Post #28.
     
  13. SD

    SD Erfahrener Benutzer

    Registriert seit:
    11. Januar 2017
    Beiträge:
    252
    Danke erhalten:
    23
    Danke vergeben:
    83
    Habe das jetzt an den Hoster weitergeleitet!
     
  14. Kai Schoelzke

    Kai Schoelzke Beta-Held

    Registriert seit:
    30. März 2016
    Beiträge:
    3.803
    Danke erhalten:
    548
    Danke vergeben:
    248
    Hm, ist zu mindest nicht der gleiche Anbieter. Was mir dazu noch einfällt, schau mal ob dein SSL zwangsumgeleitet wird, wenn ja mach das mal aus.
     
  15. SD

    SD Erfahrener Benutzer

    Registriert seit:
    11. Januar 2017
    Beiträge:
    252
    Danke erhalten:
    23
    Danke vergeben:
    83

    Hi Marco,
    danke schon mal fürs nachschauen!!!

    Kann ich den Ordner _includes löschen oder wird dieser benötigt?

    Grüße
     
  16. SD

    SD Erfahrener Benutzer

    Registriert seit:
    11. Januar 2017
    Beiträge:
    252
    Danke erhalten:
    23
    Danke vergeben:
    83
    Wo schaue ich das nach?
     
  17. Kai Schoelzke

    Kai Schoelzke Beta-Held

    Registriert seit:
    30. März 2016
    Beiträge:
    3.803
    Danke erhalten:
    548
    Danke vergeben:
    248
    in deiner Administration beim Hoster
     
  18. SD

    SD Erfahrener Benutzer

    Registriert seit:
    11. Januar 2017
    Beiträge:
    252
    Danke erhalten:
    23
    Danke vergeben:
    83
    Da kann ich nur folgendes umstellen:

    HTTP und HTTPS erlauben

    oder

    auf HTTPS umleiten
     
  19. SD

    SD Erfahrener Benutzer

    Registriert seit:
    11. Januar 2017
    Beiträge:
    252
    Danke erhalten:
    23
    Danke vergeben:
    83
    • Zeichensatz:
      Standardeinstellung : UTF-8

    • PHP-Version:
      Standardeinstellung: Version: 7.0
    • PHP-Turbo:
      Standardeinstellung: Nein
    • PHP-Shorttags:
      Standardeinstellung: Nein
    • PHP Globale Variablen:
      Standardeinstellung: Nein
    • PHP Eval Anweisung:
      Standardeinstellung: Ja
    • PHP Url Include:
      Standardeinstellung: Nein
    • PHP Quotes-GPC:
      Standardeinstellung: Ja
    • PHP-Sessionverschlüsselung:
      Standardeinstellung: Ja
    • PHP Allow-Pass-Reference:
      Standardeinstellung: Nein
    • Zend Guard Loader:
      Standardeinstellung: Nein
    • ionCube Loader:
      Standardeinstellung: Nein
    • HTTPS:
      Standardeinstellung: HTTP und HTTPS erlauben
    • Verzeichnis auflisten:
      Standardeinstellung: Verzeichnisse nicht auflisten
    folgende Einstellungen habe ich momentan!!
     
  20. Anonymous

    Anonymous Erfahrener Benutzer
    Mitarbeiter

    Registriert seit:
    22. Juni 2011
    Beiträge:
    4.760
    Danke erhalten:
    1.748
    Danke vergeben:
    137
    Kann höchstwahrscheinlich weg, gehört jedenfalls standardmäßig nicht zum Shopsystem.