Re:Show HN: Super simple static blog generator, Benjen
by kmfrk on Sunday March 17, 2013 @08:09AM
(#5388962)
Yup. The only problem is with using shorturls (since there no DB object ID to map to).
[ Parent
| on HN ]
Re:Show HN: Super simple static blog generator, Benjen
by grey-area on Sunday March 17, 2013 @08:22AM
(#5388990)
You could have your static generator create symlinks for each post at the short url pointing to the actual page at the canonical url to handle this, and set your server up to follow symlinks.
Alternatively it could generate a table of redirects for you to put in your server config/htaccess.
Re:Show HN: Super simple static blog generator, Benjen
by kmfrk on Sunday March 17, 2013 @08:42AM
(#5389028)
Is this possible on S3?
Re:Show HN: Super simple static blog generator, Benjen
by grey-area on Sunday March 17, 2013 @09:00AM
(#5389053)
No idea I'm afraid, it depends on their setup. I used it as one approach when generating a static blog a while ago under Apache, but there are plenty of options (using config redirects, using symlinked pages or dirs, using duplicate html pages with rel=canonical, using js redirects in extra html pages), and I'm sure some if not all of them would work on S3. As long as you're generating statically anyway, you can always add another step to generate all your short links automatically too in whatever form works on your server...
Re:Show HN: Super simple static blog generator, Benjen
by daeken on Sunday March 17, 2013 @08:10AM
(#5388971)
I get around this with nginx rewrite rules. Since my old blog was Posterous, I spit out a bunch of rewrites to map my old URLs to new ones, e.g.:
rewrite ^/superpacking-js-demos$ /2011-08-31_Superpacking_JS_Demos.html;