Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
39 lines (31 sloc)
1.46 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
permalink: /.htaccess | |
eleventyExcludeFromCollections: true | |
--- | |
ErrorDocument 404 /404.html | |
Options -MultiViews | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} ^/index\.php$ | |
RewriteCond %{QUERY_STRING} ^date=(\d{4})-(\d{2})-(\d{2})&time=(\d{2}):(\d{2}):(\d{2}).*?$ | |
RewriteRule ^(.*)$ ${legacyposts:%4%5%6}? [NC,L,R=301] | |
RewriteCond %{REQUEST_URI} ^/ViewByCategories\.php$ | |
RewriteCond %{QUERY_STRING} ^category=(.*?)$ | |
RewriteRule ^(.*)$ /tags/%1/? [NC,L,R=301] | |
RewriteRule ^atom.php$ /feed/feed.xml? [NC,L,R=301] | |
Redirect 301 /2019/12/01/animated-svg-favicon/ /2019/12/01/animated-svg-favicons/ | |
Redirect 301 /2018/12/05/why-build-progressive-web-apps-push-but-don-t-be-pushy-video-write-up-094452/ /2018/12/04/why-build-progressive-web-apps-push-but-dont-be-pushy-video-write-up/ | |
Redirect 301 /2019/12/09/inspecting_facebooks_webview/ /2019/12/09/inspecting-facebooks-webview/ | |
Redirect 301 /2021/11/08/things-mode-and-stings-mode-in-google-trends/ /2021/11/08/things-mode-and-strings-mode-in-google-trends/ | |
# BEGIN Expire headers | |
<IfModule mod_expires.c> | |
ExpiresActive on | |
# Set the default expiry times. | |
ExpiresDefault "access plus 2 days" | |
ExpiresByType image/* "access plus 1 month" | |
ExpiresByType text/css "access plus 1 month" | |
ExpiresByType text/javascript "access plus 1 month" | |
ExpiresByType application/javascript "access plus 1 month" | |
ExpiresByType text/html "access plus 600 seconds" | |
ExpiresByType font/woff2 "access plus 1 year" | |
</IfModule> | |
# END Expire headers | |