Beiträge von bat2.111

    Hi,

    ich habe Probleme mit Envira Gallery bei der Anzeige von Bildern. In manchen Browsern und Geräten wird die Galerie korrekt dargestellt (4 Spalten, Bilder anklickbar), in einigen anderen leider nicht.
    Ich habe das Problem mit verschiedenen Galerie-Plugins, komme aber nicht dahinter, woran es liegt.
    W3 Cache habe ich bsplsw. deaktiviert, brachte aber keine Besserung.

    Kann mir jemand ggf. helfen?

    https://www.engelfotografie.com/hochzeitsfotog…age-aachen-nrw/

    Kann viele Ursachen haben...

    • Welche genaue Fehlermeldung?
    • Was wird wo wie eingefügt?
    • Bilder ggf. zu gross?
    • Funktioniert es testweise mit dem Plugin Classic Editor?


    'Verbindung wurde unterbrochen. Speichern wurde deaktiviert, bis die Verbindung wiederhergestellt ist...'
    Es handelt sich um 49 Jpegs in der Größe 900px, je Bild ca. 100KB.
    Ich versuche es mit dem Classic Editor, wie es auch schon dutzende Male zuvor problemlos funktioniert hatte.

    Habe ich eben probiert - konnte dann den Server nicht mehr erreichen.

    Irgendwas habe ich falsch gemacht.

    htaccess Umleitung auf www

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    # BEGIN Custom

    <ifModule mod_headers.c>
    Header set Connection keep-alive
    </ifModule>

    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/atom_xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-shockwave-flash
    </IfModule>

    <IfModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </IfModule>

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType text/javascript "access plus 1 week"
    ExpiresByType text/html "access plus 1 week"
    ExpiresByType application/javascript "access plus 1 week"
    ExpiresByType application/x-javascript "access plus 1 week"
    ExpiresByType application/xhtml-xml "access plus 600 seconds"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 month"
    </IfModule>

    <ifmodule mod_headers.c>
    <filesmatch "\\.(ico|jpe?g|png|gif|swf)$">
    Header set Cache-Control "max-age=2592000, public"
    </filesmatch>
    <filesmatch "\\.(css)$">
    Header set Cache-Control "max-age=604800, public"
    </filesmatch>
    <filesmatch "\\.(js)$">
    Header set Cache-Control "max-age=604800, private"
    </filesmatch>
    <filesmatch "\\.(x?html?|php)$">
    Header set Cache-Control "max-age=600, private, must-revalidate"
    </filesmatch>
    </ifmodule>

    <IfModule mod_headers.c>
    Header append Vary Accept-Encoding
    </IfModule>

    RewriteEngine On

    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ https://www.%%7bhttp_host%7d/%241 [L,R=301]

    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%%7bhttp_host%7d/%241 [L,R=301]

    # END Custom

    Ah, ein Licht geht auf! :D
    Ich habe mich die ganze Zeit gewundert, warum die htaccess immer wieder den Standardinhalt anzeigen.

    Also eigentlich dann so:

    # BEGIN WordPress
    Standardinhalt

    # END WordPress

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>


    <ifModule mod_headers.c>
    Header set Connection keep-alive
    </ifModule>

    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE text/javascript
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/atom_xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddOutputFilterByType DEFLATE application/x-shockwave-flash
    </IfModule>

    <IfModule mod_gzip.c>
    mod_gzip_on Yes
    mod_gzip_dechunk Yes
    mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
    mod_gzip_item_include handler ^cgi-script$
    mod_gzip_item_include mime ^text/.*
    mod_gzip_item_include mime ^application/x-javascript.*
    mod_gzip_item_exclude mime ^image/.*
    mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </IfModule>

    <IfModule mod_expires.c>
    ExpiresActive On
    ExpiresByType text/css "access plus 1 week"
    ExpiresByType text/javascript "access plus 1 week"
    ExpiresByType text/html "access plus 1 week"
    ExpiresByType application/javascript "access plus 1 week"
    ExpiresByType application/x-javascript "access plus 1 week"
    ExpiresByType application/xhtml-xml "access plus 600 seconds"
    ExpiresByType image/gif "access plus 1 month"
    ExpiresByType image/jpeg "access plus 1 month"
    ExpiresByType image/png "access plus 1 month"
    ExpiresByType image/x-icon "access plus 1 month"
    </IfModule>

    <ifmodule mod_headers.c>
    <filesmatch "\\.(ico|jpe?g|png|gif|swf)$">
    Header set Cache-Control "max-age=2592000, public"
    </filesmatch>
    <filesmatch "\\.(css)$">
    Header set Cache-Control "max-age=604800, public"
    </filesmatch>
    <filesmatch "\\.(js)$">
    Header set Cache-Control "max-age=604800, private"
    </filesmatch>
    <filesmatch "\\.(x?html?|php)$">
    Header set Cache-Control "max-age=600, private, must-revalidate"
    </filesmatch>
    </ifmodule>

    <IfModule mod_headers.c>
    Header append Vary Accept-Encoding
    </IfModule>

    RewriteEngine On

    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ https://www.%%7bhttp_host%7d/%241 [L,R=301]

    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%%7bhttp_host%7d/%241 [L,R=301]