{"action":"closed","issue":{"url":"https://api.github.com/repos/yakamara/redaxo_yrewrite/issues/198","repository_url":"https://api.github.com/repos/yakamara/redaxo_yrewrite","labels_url":"https://api.github.com/repos/yakamara/redaxo_yrewrite/issues/198/labels{/name}","comments_url":"https://api.github.com/repos/yakamara/redaxo_yrewrite/issues/198/comments","events_url":"https://api.github.com/repos/yakamara/redaxo_yrewrite/issues/198/events","html_url":"https://github.com/yakamara/redaxo_yrewrite/issues/198","id":289230882,"node_id":"MDU6SXNzdWUyODkyMzA4ODI=","number":198,"title":".htaccess überarbeitet","user":{"login":"elricco","id":1929635,"node_id":"MDQ6VXNlcjE5Mjk2MzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1929635?v=4","gravatar_id":"","url":"https://api.github.com/users/elricco","html_url":"https://github.com/elricco","followers_url":"https://api.github.com/users/elricco/followers","following_url":"https://api.github.com/users/elricco/following{/other_user}","gists_url":"https://api.github.com/users/elricco/gists{/gist_id}","starred_url":"https://api.github.com/users/elricco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/elricco/subscriptions","organizations_url":"https://api.github.com/users/elricco/orgs","repos_url":"https://api.github.com/users/elricco/repos","events_url":"https://api.github.com/users/elricco/events{/privacy}","received_events_url":"https://api.github.com/users/elricco/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-01-17T11:22:10Z","updated_at":"2018-08-11T07:39:06Z","closed_at":"2018-08-11T07:39:06Z","author_association":"NONE","body":"@dergel ich habe gerade bei einem Projekt geschaut, wegen Caching etc. - dann habe ich gerade mal eure htaccess aus yrewrite und eine aus einem anderen Projekt zusammengehauen, vllt. könnt ihr es ja gebrauchen:\r\n\r\n```\r\n# DEFAULT CHARSET\r\nAddDefaultCharset utf-8\r\n# PREVENT DIRECTORY LISTING\r\n<IfModule mod_autoindex.c>\r\n    #Options -Indexes\r\n</IfModule>\r\n# ADD MIME TYPES\r\n<IfModule mod_mime.c>\r\n    AddType image/x-icon .ico\r\n    AddType image/svg+xml svg\r\n    AddType video/ogg .ogv\r\n    AddType video/mp4 .mp4\r\n    AddType video/webm .webm\r\n    AddType video/x-flv flv\r\n    AddType audio/mpeg .mp3\r\n    AddType audio/ogg .ogg\r\n    AddType application/javascript .js\r\n    AddType application/json .json\r\n    AddType application/xml .xml\r\n    AddType application/x-shockwave-flash .swf\r\n    AddType application/vnd.ms-fontobject .eot\r\n    AddType application/x-font-ttf .ttf\r\n    AddType application/font-woff .woff\r\n    AddType application/font-woff2 .woff2\r\n    AddType application/x-font-opentype .otf\r\n    AddType font/opentype otf\r\n</IfModule>\r\n# COMPRESS FILES\r\n<IfModule mod_deflate.c>\r\n    AddOutputFilterByType DEFLATE text/html\r\n    AddOutputFilterByType DEFLATE text/plain\r\n    AddOutputFilterByType DEFLATE text/xml\r\n    AddOutputFilterByType DEFLATE text/css\r\n    AddOutputFilterByType DEFLATE text/javascript\r\n    AddOutputFilterByType DEFLATE image/svg+xml\r\n    AddOutputFilterByType DEFLATE image/x-icon\r\n    AddOutputFilterByType DEFLATE application/javascript\r\n    AddOutputFilterByType DEFLATE application/json\r\n    AddOutputFilterByType DEFLATE application/xml\r\n    AddOutputFilterByType DEFLATE application/rss+xml\r\n    AddOutputFilterByType DEFLATE application/x-javascript\r\n    AddOutputFilterByType DEFLATE application/xhtml+xml\r\n    AddOutputFilterByType DEFLATE application/x-font\r\n    AddOutputFilterByType DEFLATE application/x-font-truetype\r\n    AddOutputFilterByType DEFLATE application/x-font-ttf\r\n    AddOutputFilterByType DEFLATE application/x-font-woff\r\n    AddOutputFilterByType DEFLATE application/x-font-woff2\r\n    AddOutputFilterByType DEFLATE application/x-font-otf\r\n    AddOutputFilterByType DEFLATE application/x-font-opentype\r\n    AddOutputFilterByType DEFLATE application/vnd.ms-fontobject\r\n    AddOutputFilterByType DEFLATE application/x-font-ttf\r\n    AddOutputFilterByType DEFLATE font/ttf\r\n    AddOutputFilterByType DEFLATE font/woff\r\n    AddOutputFilterByType DEFLATE font/woff2\r\n    AddOutputFilterByType DEFLATE font/otf\r\n    AddOutputFilterByType DEFLATE font/opentype\r\n    # For Olders Browsers Which Can't Handle Compression\r\n    BrowserMatch ^Mozilla/4 gzip-only-text/html\r\n    BrowserMatch ^Mozilla/4\\.0[678] no-gzip\r\n    BrowserMatch \\bMSIE !no-gzip !gzip-only-text/html\r\n</IfModule>\r\n# ADD CACHING HEADERS\r\n#Expire headers 5184000 Sekunden = 2 Monate\r\n#<IfModule mod_expires.c>\r\n#    ExpiresActive On\r\n#    ExpiresDefault \"access plus 1 week\"\r\n#    ExpiresByType text/html \"access plus 0 seconds\"\r\n#    ExpiresByType text/plain \"access plus 0 seconds\"\r\n#    ExpiresByType text/xml \"access plus 0 seconds\"\r\n#    ExpiresByType text/css \"access plus 4 weeks\"\r\n#    ExpiresByType text/javascript \"access plus 4 weeks\"\r\n#    ExpiresByType image/gif \"access plus 1 week\"\r\n#    ExpiresByType image/png \"access plus 1 week\"\r\n#    ExpiresByType image/jpg \"access plus 1 week\"\r\n#    ExpiresByType image/jpeg \"access plus 1 week\"\r\n#    ExpiresByType image/x-icon \"access plus 4 week\"\r\n#    ExpiresByType image/svg+xml \"access plus 4 weeks\"\r\n#    ExpiresByType video/mp4 \"access plus 4 weeks\"\r\n#    ExpiresByType video/ogg \"access plus 4 weeks\"\r\n#    ExpiresByType video/webm \"access plus 4 weeks\"\r\n#    ExpiresByType video/x-flv \"access plus 4 weeks\"\r\n#    ExpiresByType application/javascript \"access plus 4 weeks\"\r\n#    ExpiresByType application/x-javascript \"access plus 4 weeks\"\r\n#    ExpiresByType application/json \"access plus 0 seconds\"\r\n#    ExpiresByType application/xml \"access plus 0 seconds\"\r\n#    ExpiresByType application/x-shockwave-flash \"access plus 4 weeks\"\r\n#    ExpiresByType application/vnd.ms-fontobject \"access plus 4 weeks\"\r\n#    ExpiresByType application/x-font-ttf \"access plus 4 weeks\"\r\n#    ExpiresByType application/font-woff \"access plus 4 weeks\"\r\n#    ExpiresByType application/font-woff2 \"access plus 4 weeks\"\r\n#    ExpiresByType application/x-font-woff \"access plus 4 weeks\"\r\n#    ExpiresByType font/woff \"access plus 4 weeks\"\r\n#    ExpiresByType font/woff2 \"access plus 4 weeks\"\r\n#    ExpiresByType font/ttf \"access plus 4 weeks\"\r\n#    ExpiresByType font/opentype \"access plus 4 weeks\"\r\n#</IfModule>\r\n# BEGIN Cache-Control Headers\r\n#<ifmodule mod_headers.c>\r\n#    <filesmatch \"\\\\.(ico|jpe?g|png|gif|swf)$\">\r\n#        Header set Cache-Control \"max-age=5184000, public\"\r\n#    </filesmatch>\r\n#    <filesmatch \"\\\\.(css)$\">\r\n#        Header set Cache-Control \"max-age=5184000, private\"\r\n#    </filesmatch>\r\n#    <filesmatch \"\\\\.(js)$\">\r\n#        Header set Cache-Control \"max-age=691200, private\"\r\n#    </filesmatch>\r\n#</ifmodule>\r\n# REMOVE ETAG\r\n#<IfModule mod_headers.c>\r\n#    Header unset ETag\r\n#</IfModule>\r\n#\r\n#FileETag None\r\n\r\n# REWRITING\r\n<IfModule mod_rewrite.c>\r\n    # ENABLE REWRITING\r\n    RewriteEngine On\r\n    # Workaround for RewriteBase\r\n    # Copied from https://github.com/symfony/symfony-standard/blob/master/web/.htaccess\r\n    RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\\2$\r\n    RewriteRule ^(.*) - [E=BASE:%1]\r\n    RewriteRule ^sitemap\\.xml$ %{ENV:BASE}/index.php?rex_yrewrite_func=sitemap [NC,L]\r\n    RewriteRule ^robots\\.txt$ %{ENV:BASE}/index.php?rex_yrewrite_func=robots [NC,L]\r\n    # REWRITE RULE FOR SEO FRIENDLY IMAGE MANAGER URLS\r\n    RewriteRule ^media[0-9]*/imagetypes/([^/]*)/([^/]*) %{ENV:BASE}/index.php?rex_media_type=$1&rex_media_file=$2&%{QUERY_STRING} [B]\r\n    RewriteRule ^images/([^/]*)/([^/]*) %{ENV:BASE}/index.php?rex_media_type=$1&rex_media_file=$2&%{QUERY_STRING} [B]\r\n    RewriteRule ^imagetypes/([^/]*)/([^/]*) %{ENV:BASE}/index.php?rex_media_type=$1&rex_media_file=$2\r\n    RewriteCond %{REQUEST_FILENAME} !-f\r\n    RewriteCond %{REQUEST_FILENAME} !-d\r\n    RewriteCond %{REQUEST_FILENAME} !-l\r\n    RewriteCond %{REQUEST_URI} !^redaxo/.*\r\n    RewriteCond %{REQUEST_URI} !^media/.*\r\n    RewriteRule ^(.*)$ %{ENV:BASE}/index.php?%{QUERY_STRING} [L]\r\n</IfModule>\r\n```"}}
{"actor":{"display_login":"dergel"}}