Todo #10157
closed
Setup new redirect subdomain and processes
Added by Anonymous almost 5 years ago.
Updated almost 5 years ago.
Description
We currently use pfsense.org to host a file "j.php" which redirects requests to the appropriate (usually help) resource. For example, clicking the "Help ->FreeBSD book" menu item links to https://www.pfsense.org/j.php?jumpto=fbsdhandbook
We need to recreate this functionality on the netgate.com domain. The cleanest and more secure way to do this seems to be to setup a new subdomain, E.g.: redirect.netgate.com which will point to a new NGINX block on www.netgate.com The redirects provided will be synced with a file maintained in GitLab providing the ability to update the redirects without touching the server.
This redirect system will also be used to redirect the new user survey.
I don't think it actually uses the php file now but nginx redirects, so we might also want to take the opportunity to make better URLs to use in the menu for redirecting in general not just changing the hostname of the server. For example, redirect.netgate.com/book, or redirect.netgate.com/go/book or along those lines.
Sounds good. As soon as we get the OK on the subdomain from IT I'll update the URLs
There is still one remaining reference after f07e6d64f0f94fe7f58fc7ada12d42bcf705dc88
src/usr/local/www/head.inc:425: $help_menu[] = array(gettext("Bug Database"), "https://www.pfsense.org/j.php?jumpto=redmine");
- Status changed from New to Feedback
- Assignee changed from Jared Dillard to Anonymous
I added the redirect for "Bug Database" using the new process and replaced the redirect in the code. Everything seems to be operational.
Relevant commits:
master:
RELENG_2_4_5:
- % Done changed from 0 to 100
- Status changed from Feedback to Resolved
URLs in Help menu are good now on 2.5.0 and 2.4.5.
Also available in: Atom
PDF