HtmGem is Php program whose goal is to make Gemini files reachable through HTTP. It can be used on a shared host.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Christophe HENRY c305faf8e4 Updates TODO 8 months ago
tests wip 8 months ago
.gitignore WIP 8 months ago
COPYING Ready for alpha 8 months ago Replaces preg_replace by mb_ereg_replace 8 months ago
TODO Updates TODO 8 months ago
htmgem.css Prevent <A> from text-justify 8 months ago
htmgem.php Manages non-break spaces for em-dash and en-dash 8 months ago


This program aims to provide access to Gemini pages through a web server.

It’s in alpha: advanced features available soon.


Place "htmgem.php" on the root of your webserver.

Your "page.gmi" is reachable using [http://thesite/htmgem.php?directory/page.gmi] with HTML markup:

URL Rewriting

With Nginx, you can use:

rewrite ^(.+\.gmi)$ /htmgem.php?url=$1 last;


php-mbstring is required

So the page is available at [http://thesite/htmgem.php/directory/page.gmi].