-- Leo's gemini proxy

-- Connecting to bbs.geminispace.org:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini; charset=utf-8

My capsule mess

I have a two years old capsule, more or less, anything the thing is that I started adding posts "just to try Gemini" so with no concerns for any file structure. Now it seems that I'm settled with chronological folder structure where my gemlog posts are in year/month/ But what do I do with my old posts? My guess is that I should move them to integrate them in the new structure, and add redirections to reflect their new locations... but that's something I've never done "by hand", and I'm not sure I'm interprenting Agate's documentation right. Should it be something like:

31 old/path/file.gmi new/path/file.gmi?


Posted in: s/Geminispace

🏕ī¸ Yretek

2023-10-26 ¡ 7 months ago


3 Comments ↓


🕹ī¸ skyjake [...] ¡ 2023-10-26 at 15:28:

Setting up redirects is the recommended way to handle reorganizations, yes.


In the Agate .meta files, the format is:

old/path.gmi: 31 new/path.gmi

The part before the colon can be a wildcard, in which case every matching "old path" will redirect to the same destination.


đŸĩ michaelnordmeyer [mod] ¡ 2023-10-26 at 15:50:

Skyjake is right, but old path and new path are treated differently in Agate regarding slashes.


If the old URL is gemini://example.com/blog/old.gmi and the new URL is gemini://example.com/gemlog/new.gmi, then the redirection in .meta should be:


blog/old.gmi: 31 /gemlog/new.gmi

The naive but wrong approaches are


blog/old.gmi: 31 gemlog/new.gmi

and


/blog/old.gmi: 31 /gemlog/new.gmi

which would rewrite gemini://example.com/blog/old.gmi to gemini://example.com/blog/gemlog/old.gmi.


🏕ī¸ Yretek [OP] ¡ 2023-10-26 at 20:55:

It seems to be working. It's a bit of a chore, but I'll get it done, thank you :)

-- Response ended

-- Page fetched on Sun May 19 15:45:17 2024