Enable WordPress URL Slugs On Linode

Samuel Coe • November 6th, 2019

I

recently found myself creating a WordPress site, which for someone used to building website and web applications from scratch may seem a little odd. The thing is, I’ve developed a need for very quickly spun-up websites and there’s nothing as effecient at that (speed, cost, resources) as WordPress.

I did run into some little issues; however, one of them being the chaose that ensues when you change the default WordPress URL configuration to use the actual name of the page or blog post. This is a critical step for general readability and SEO, so I’m not really sure why WordPress does anything else by default.

I’m going to assume you know your way around the server hosting your WordPress instance– if not, Google it.

Once in your server, here’s what needs to happen:

1. Enable Apache mode_rewrite

Copy to Clipboard

2. Update Apache config

Copy to Clipboard

In this file, you will need to update the following block:

Copy to Clipboard

To look like this:

Copy to Clipboard

Save and close the file.

3. Configure .htaccess

Copy to Clipboard

Make sure the file looks like this (unless you’ve done some other work in here, then use your discretion)

Copy to Clipboard

4. Restart Apache

Copy to Clipboard