Servus,
wer kann mir bei der Reihenfolge meiner HTACCESS Datei helfen,
Apache Configuration
# 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
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
# Adaptive-Images -----------------------------------------------------------------------------------
# Add any directories you wish to omit from the Adaptive-Images process on a new line, as follows:
# RewriteCond %{REQUEST_URI} !ignore-this-directory
# RewriteCond %{REQUEST_URI} !and-ignore-this-directory-too
RewriteCond %{REQUEST_URI} !assets
# don't apply the AI behaviour to images inside AI's cache folder:
RewriteCond %{REQUEST_URI} !ai-cache
# Send any GIF, JPG, or PNG request that IS NOT stored inside one of the above directories
# to adaptive-images.php so we can select appropriately sized versions
RewriteRule \.(?:jpe?g|gif|png)$ adaptive-images.php
# END Adaptive-Images -------------------------------------------------------------------------------
</IfModule>
<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
# 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
Alles anzeigen
da fehlt aber die hälfte einer sinnvollen htaccess.