Enabling Permalinks in Wordpress
First, what are permalinks?
Permalinks are a feature of WordPress that make the links on your site look more natural to humans. For example, instead of link to a blog post look like:
You can make it look like:
This not only makes it easier to read but also has SEO benefits. For the purpose of this article though, our primary concern is enabling Permalinks for the WooCommerce API to work.
Changing your permalink settings
You can change your permalink settings in the administration section of your Wordpress site. To get to the settings page, click Settings on the left menu and then click on Permalinks. Alternatively, you can access the page directly by going to:
One you get there you'll see a page that looks like this:
On the settings page you'll see several different formats of links. By default the Plain setting is selected - this means permalinks are disabled.
For the WooCommerce API it doesn't matter which option you choose, as long as it's not the first one. For simplicity's sake we recommend choosing Day and name. Once you make the selection, don't forget to scroll down the bottom of the page to click the Save Changes button!
Testing your permalinks
Once you've saved the settings, go to the homepage of your Wordpress site (reload the page if you were already there) and click on a link to one of your blog posts. If everything is working you'll notice that the URL to the post is in the format that you choose in the settings.
In most cases everything will work right away but some hosting providers require changing some server settings for the permalinks to work. If you're not seeing the new URL structure, or you're not able to view the pages at the new URLs, this might be the case.
A good resource for doing this is the Wordpress site which has a page on how to configure your server for permalinks.
That's it, you now have permalinks enabled on your site! If you need more information on enabling the WooCommerce API check out our the guide in our knowledge base.
Don't have the app yet? Get it here