Index ¦ Archives

Random tech tips

We needed a simple solution that was proven and reliable to help people connect during covid-19.

Discourse

We used the open source discourse forum software -

Pelican

To create this static site we used Pelican to generate static .html files.

To redirect traffic from the old domain we did try a simple URL redirect from the domain registrar (namecheap) but there were some issues with https traffic (http seems fine) and sometimes it is a little slow.

WordPress

We used WordPress mostly because there were tested plugins which made it easy to see what traffic is hitting the URLs and redirect them to the static site. As inbound links are updated we should see this traffic taper off.

Plugin: Redirection

This allows us to redirect certain popular topics to an appropriate page on the static site, helping more people get to the right page without needing to navigate through the post and pages.

Also used to redirect the main page (at /) otherwise it would be an empty WordPress site!

Plugin: All 404 Redirect to Homepage

This covers all the pages we did not manually redirect with the other plugin.

It also lets us see recent 404s so we can add a manual redirection if required.

We planned to use apache with 're-write rules' or the equivalent under nginx.

# .htaccess code for 301 redirect

RewriteEngine on
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^community.foodbyfone\.com/$ https://static.community.foodbyfone.com/ [R=301,QSD,L]

RewriteCond %{QUERY_STRING} ^$
RewriteRule ^oldurl\.com/string$ https://static.ff.dn.ext/string [R=301,QSD,L]

...but this would not have given us easy to access statistics.

© 2020 foodbyfone.com - We are not responsible for the content of external sites. Built using Pelican. Theme based on 'svbhack' by Giulio Fidente on github.