Skip to content

Prepare website for openprinting.org domain - #245

Draft
n0y0nD wants to merge 2 commits into
OpenPrinting:masterfrom
n0y0nD:fix-domain
Draft

n0y0nD wants to merge 2 commits into
OpenPrinting:masterfrom
n0y0nD:fix-domain

Conversation

@n0y0nD

@n0y0nD n0y0nD commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Related to #240

Updates the canonical domain and documentation links to openprinting.org while preserving existing RSS item IDs. Adds checks for sitemap/feed URLs and RSS identities.
Tested locally: lint, full build, and URL checks passed.

@n0y0nD
n0y0nD marked this pull request as draft October 15, 2026 20:17
@tillkamppeter

Copy link
Copy Markdown
Member

Some questions/doubts:

  • The changes are only to assure that the RSS feed works? Or do they also have any other effect?
  • All old outside links, also starting with https://openprinting.github.io/ stay working? In addition to links starting with https://www.openprinting.org/ with the rest being the same?
  • Will all https://www.openprinting.org/, https://openprinting.org/, http://www.openprinting.org/, http://openprinting.org/, and https://openprinting.github.io/ work equally?
  • when navigating internally, clicking an internal link on the page, will the start of the URL stay the same? Or at least turned into one of https://www.openprinting.org/ or https://openprinting.org/?

What do I have to do/configure on the server which forwards accesses to the openprinting.org domain to these GitHub pages?

@tillkamppeter

Copy link
Copy Markdown
Member

This is the .htaccess file currently used over there:
https://github.com/OpenPrinting/foomatic-db-webapp/blob/master/.htaccess

@n0y0nD

n0y0nD commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks for the questions and the .htaccess link.
PR #245 updates the canonical URL, sitemap, RSS links and documentation to openprinting.org, while keeping the existing RSS item IDs. The main internal navigation uses root-relative links. Generated canonical, sitemap and RSS links use https://openprinting.org (no www). The PR doesn’t configure DNS or server redirects.
Next, I’ll review the current server setup before proposing deployment steps. Existing download links must keep working. I’ll check the old printer/driver URLs, the other redirects in .htaccess, /cups/, and the HTTP/HTTPS and www/non-www variants.

@SinghCod3r SinghCod3r closed this Nov 3, 2026
@SinghCod3r SinghCod3r reopened this Nov 3, 2026
@n0y0nD

n0y0nD commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Hi @tillkamppeter , sorry for the late reply.

I went through the server setup and the .htaccess. Right now openprinting.org (with or without www) just redirects to openprinting.github.io, and the old printer/driver/query URLs also redirect to openprinting.github.io/foomatic/. The only thing still actually served from the Apache server is /download/.

On Telegram I mentioned setting up the GitHub Pages custom domain and updating DNS on your side, but that would break the downloads. I think a better option is to keep the server and have it proxy the site from GitHub Pages, while still serving /download/ itself. Something like this in the vhost config:

SSLProxyEngine On
ProxyPreserveHost Off
ProxyPass        /download/ !
ProxyPass        /.well-known/ !
ProxyPass        /  https://openprinting.github.io/
ProxyPassReverse /  https://openprinting.github.io/

/.well-known/ stays local so the HTTPS certificate can still renew. The old printer/driver/query redirects (like /printers -> /foomatic/printers) should stay, but point to openprinting.org instead of openprinting.github.io. Since ProxyPass is handled before .htaccess, they would probably need to move into the vhost config too. And www/http should redirect to https://openprinting.org/. I haven't tested this on the actual server, so it might need some tweaks.

About your questions:

  • It's not only for RSS. The PR also changes the canonical tags and sitemap so search engines use openprinting.org. Nothing visible on the pages changes, and RSS item IDs stay the same, so old posts won't show up as new.
  • Old openprinting.github.io links will keep working.
  • http/https and www/non-www will all end up at https://openprinting.org/.
  • Internal links are relative, so you stay on the same domain while browsing.

If this sounds fine to you, once you update the server config I'll check all the URLs and then mark the PR ready for merge.

@tillkamppeter

Copy link
Copy Markdown
Member

Great.

But how do I update the server config? Where is this "vhost config"?

@n0y0nD

n0y0nD commented Nov 19, 2026

Copy link
Copy Markdown
Contributor Author

Great.

But how do I update the server config? Where is this "vhost config"?

The vhost config is Apache's main config for the site, not the .htaccess, and changing it needs root access. If you have a shell on the server, sudo apachectl -S shows which file it's in. (It can't go into .htaccess because SSLProxyEngine isn't allowed there.)

The server is hosted by OSUOSL (openprinting.org points to vip-lb1.osuosl.org), so if you don't have root, they would need to make the change via [email protected].

Let me know if you have access to it.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants