Hallo zusammen!
Ich habe letztens mit Unterstützung meine htaccess optimiert.
Leider scheint sich darin ein Fehler zu verstecken, der dafür sorgt, das man trotz klick auf die Links nicht auf die Artikel, sondern auf die Startseite verlinkt wird.
in einem Bildschirm-Video kann man das gut sehen. Nachdem ich jetzt die alte Version wieder hochgeladen habe, ist das Kuriosum anscheinend verschwunden.
Kann irgendwer einen Fehler in der htaccess entdecken?
PHP
SetOutputFilter DEFLATEAddHandler php56-cgi .phpphp_value memory_limit 256Mphp_value max_execution_time 300php_value max_input_time 300php_value session.gc_maxlifetime 86400php_flag log_errors onphp_value error_reporting E_ALLphp_value error_log /xxx/errorlog/error.log <Files wp-login.php>AuthName "Restricted Admin-Bereich"AuthType BasicAuthUserFile /xxx/.htpasswdrequire valid-user</Files> AddType text/html .gzAddEncoding gzip .gzAddType image/webp .webp Options +FollowSymlinks -Indexes RewriteEngine OnRewriteBase / RewriteRule ^login$ http://xxx/wp-login.php [NC,L] # BEGINN CACHIFY# GZIP FILERewriteCond %{REQUEST_URI} /$RewriteCond %{REQUEST_URI} !^/wp-admin/.*RewriteCond %{REQUEST_METHOD} !=POSTRewriteCond %{QUERY_STRING} =""RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_RewriteCond %{HTTP:Accept-Encoding} gzipRewriteCond %{DOCUMENT_ROOT}/wp-content/cache/cachify/%{HTTP_HOST}%{REQUEST_URI}/index.html.gz -fRewriteRule ^(.*) /wp-content/cache/cachify/%{HTTP_HOST}/index.html.gz [L] # HTML FILERewriteCond %{REQUEST_URI} /$RewriteCond %{REQUEST_URI} !^/wp-admin/.*RewriteCond %{REQUEST_METHOD} !=POSTRewriteCond %{QUERY_STRING} =""RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/cachify/%{HTTP_HOST}%{REQUEST_URI}/index.html -fRewriteRule ^(.*) /wp-content/cache/cachify/%{HTTP_HOST}/index.html [L]# END RewriteCond %{HTTP_ACCEPT} image/webpRewriteCond %{DOCUMENT_ROOT}/.webp -fRewriteRule ^(wp-content/uploads.+)\.(jpe?g|png)$ .webp [T=image/webp,E=accept:1] # Hotlinking verbietenRewriteCond %{HTTP_REFERER} !^$RewriteCond %{HTTP_REFERER} !^http://(www\.)?salzsau-panorama\.de(/.*)?$ [NC]RewriteCond %{HTTP_REFERER} !google\. [NC]RewriteCond %{HTTP_REFERER} !search\?q=cache [NC]RewriteRule \.(gif|jpg|GIF|JPG|png|PNG)$ - [F] RewriteCond %{QUERY_STRING} !errorRewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(wp-includes|wp-content)/(.+)\.php\ HTTP/RewriteRule .* - [F] RewriteCond %{QUERY_STRING} ftp\: [NC,OR]RewriteCond %{QUERY_STRING} http\: [NC,OR]RewriteCond %{QUERY_STRING} https\: [NC]RewriteRule .* - [F,L] # BEGIN WordPress<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule>
# END WordPress RewriteCond %{QUERY_STRING} replytocom=RewriteRule ^(.*)$ page_not_found.html [R=410,L] RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$RewriteRule ^(.*)$ http://%{HTTP_HOST}/ [R=301,L] # Double slashes in allen URLs verbietenRewriteCond %{THE_REQUEST} ^[A-Z]+\ /(([^/\ ]+/)*)/+([^\ ]*)RewriteRule ^ /%1%3 [L,R=301] # BEGIN Cache-Control Headers# mod_headers.c<filesMatch "\.(ico|jpe?g|png|gif|swf|css)$">Header set Cache-Control "public"</filesMatch><filesMatch "\.(js)$">Header set Cache-Control "private"</filesMatch># <filesMatch "\.(x?html?|php)$"># Header set Cache-Control "private, must-revalidate"# </filesMatch># END Cache-Control Headers #ETags entfernen# mod_headers.cHeader unset ETagFileETag None # mod_headers.cHeader append Vary Accept env=REDIRECT_accept
# Browsercache 1 Tag# mod_expires.cExpiresActive OnExpiresDefault "access plus 1 month 1 days"ExpiresByType text/html "access plus 1 month 1 days"ExpiresByType image/gif "access plus 1 month 1 days"ExpiresByType image/png "access plus 1 month 1 days"ExpiresByType text/xml "access plus 1 seconds" # mod_setenvif.c<Files xmlrpc.php>BrowserMatch "Poster" allowedBrowserMatch "WordPress" allowedBrowserMatch "Windows Live Writer" allowedBrowserMatch "wp-iphone" allowedBrowserMatch "wp-android" allowedOrder Deny,AllowAllow from env=allowed</Files> # Zugriff auf Dateien verbieten / WordPress Sicherheit<Files wp-config.php>order allow,denydeny from all</Files> # PROTECT readme.html<Files readme.html>Order Allow,Denydeny from all</Files> # PROTECT liesmich.html für DE Edition<Files liesmich.html>Order Allow,Denydeny from all</Files> <Files install.php>Order Allow,Denydeny from all</Files> <files error_log>Order allow,denydeny from all</files> Redirect 301 /+ https://plus.google.com/xxx/aboutRedirect 301 /plus https://plus.google.com/xxx/about# Keine URL based exploits zulassenRedirectMatch 403 \[