3 ms·
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 you
by grey-area 14y ago
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.
- kmfrk 14y agoIs this possible on S3?
- grey-area 14y agoNo 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...