Servus,
wer kann mir bei der Reihenfolge meiner HTACCESS Datei helfen, so das sie 1A funktioniert und nicht unnötig rumläd, oder wie man das nennt.
So sieht sie aus:
Apache Configuration
# BEGIN WordPress<IfModule mod_rewrite.c>
[INDENT]RewriteEngine On[/INDENT]
[INDENT]RewriteBase /[/INDENT]
[INDENT]RewriteRule ^index\.php$ - [L][/INDENT]
[INDENT]RewriteCond %{REQUEST_FILENAME} !-f[/INDENT]
[INDENT]RewriteCond %{REQUEST_FILENAME} !-d[/INDENT]
[INDENT]RewriteRule . /index.php [L][/INDENT]
</IfModule>
# END WordPress
# BEGINN Adaptive-Images
<IfModule mod_rewrite.c>
[INDENT] Options +FollowSymlinks[/INDENT]
[INDENT] RewriteEngine On[/INDENT]
[INDENT] RewriteCond %{REQUEST_URI} !assets [/INDENT]
[INDENT] RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php[/INDENT]
</IfModule>
# END Adaptive-Images
# BEGIN Browser Cache
<IfModule mod_expires.c>
[INDENT] ExpiresActive On[/INDENT]
[INDENT] ExpiresDefault "access plus 1 days"[/INDENT]
[INDENT] ExpiresByType text/html "access plus 1800 seconds"[/INDENT]
[INDENT] ExpiresByType image/gif "access plus 1 day"[/INDENT]
[INDENT] ExpiresByType image/jpeg "access plus 1 day"[/INDENT]
[INDENT] ExpiresByType image/png "access plus 1 day"[/INDENT]
[INDENT] ExpiresByType text/css "access plus 1 month"[/INDENT]
[INDENT] ExpiresByType text/javascript "access plus 1 month"[/INDENT]
[INDENT] ExpiresByType application/x-javascript "access plus 1 month"[/INDENT]
[INDENT] ExpiresByType application/javascript "access plus 1 month"[/INDENT]
[INDENT] ExpiresByType text/xml "access plus 10 seconds"[/INDENT]
</IfModule>
# END Browser Cache
# BEGINN CACHIFY
<IfModule mod_rewrite.c>
# ENGINE ON
RewriteEngine On
# GZIP FILE
<IfModule mod_mime.c>
[INDENT] RewriteCond %{REQUEST_URI} /$[/INDENT]
[INDENT] RewriteCond %{REQUEST_URI} !^/wp-admin/.*[/INDENT]
[INDENT] RewriteCond %{REQUEST_METHOD} !=POST[/INDENT]
[INDENT] RewriteCond %{QUERY_STRING} =""[/INDENT]
[INDENT] RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_[/INDENT]
[INDENT] RewriteCond %{HTTP:Accept-Encoding} gzip[/INDENT]
[INDENT] RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/cachify/%{HTTP_HOST}%{REQUEST_URI}index.html.gz -f[/INDENT]
[INDENT] RewriteRule ^(.*) /wp-content/cache/cachify/%{HTTP_HOST}%{REQUEST_URI}index.html.gz [L][/INDENT]
[INDENT] AddType text/html .gz[/INDENT]
[INDENT] AddEncoding gzip .gz[/INDENT]
</IfModule>
# HTML FILE
[INDENT] RewriteCond %{REQUEST_URI} /$[/INDENT]
[INDENT] RewriteCond %{REQUEST_URI} !^/wp-admin/.*[/INDENT]
[INDENT] RewriteCond %{REQUEST_METHOD} !=POST[/INDENT]
[INDENT] RewriteCond %{QUERY_STRING} =""[/INDENT]
[INDENT] RewriteCond %{HTTP_COOKIE} !(wp-postpass|wordpress_logged_in|comment_author)_[/INDENT]
[INDENT] RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/cachify/%{HTTP_HOST}%{REQUEST_URI}index.html -f[/INDENT]
[INDENT] RewriteRule ^(.*) /wp-content/cache/cachify/%{HTTP_HOST}%{REQUEST_URI}index.html [L][/INDENT]
# END CACHIFY
Alles anzeigen
Besten Danke,
Denis