How I Got Clean URLs For My Blog

By: Anton McClure;

Published: January 9, 2020

Categories: Technology; General;

A simple and no-bs solution for SEO-friendly URLs that can be used with virtually any web app.


AntonMcClure.com Full Logo.
AntonMcClure.com Full Logo.

Like many people and organizations, my site has portions that are powered by open source software. An example of that would be the code powering this blog, from tilde.team (with permission from Ben, of corse).

This code worked, for the most part, but URLs were written like

https://www.antonmcclure.com/blog/?page=name

rather than an SEO-friendly

https://www.antonmcclure.com/blog/name

In order to fix this, some NGINX code is needed.

The rewrite code that worked for me is shown below:

        location /blog/ {
                rewrite ^/blog/(.*)$ /blog/index.php?page=$1 last;
        }

Feel free to use and adapt this in your nginx configs as you deem necessary.

Recent Articles


(Why) Privacy Matters

By: Anton McClure;

Published: March 12, 2020

Categories: Technology; Privacy; Linux; Windows; macOS; Internet;


Do Paywalls Work

By: Anton McClure;

Published: February 27, 2020

Categories: Technology; Media; Internet;

Many news sources resort to using paywalls to generate profit. Do these paywalls actually have benefits other than some extra money?


Is DNSSEC Adoption Worth It

By: Anton McClure;

Published: February 11, 2020

Categories: Technology; Cybersecutity; Internet;

DNSSEC has a lot of hype surrounding it, but is it worth adopting?


Microsoft Launches New Edge Browser

By: Anton McClure;

Published: January 16, 2020

Categories: Technology; Microsoft;

The stable release of the new Microsoft Edge is now available for download.


Windows 7 Support Ends in 1 Day - What Options do Windows 7 Users Have

By: Anton McClure;

Published: January 13, 2020

Categories: Technology; Microsoft; Windows;

Support for Microsoft Windows 7 will be ending in less than 24 hours. What options do those still on it have?


Zenith Shell Provider and Web Host Resignation

By: Anton McClure;

Published: January 10, 2020

Categories: Unorganized;

Resignation notice for Zenith Shell Provider and Web Host (formerly Summit Tilde).


New Blog

By: Anton McClure;

Published: January 2, 2020

Categories: General;

Introduction post for new blog.