Ghost by default only lets you have dated permalink

:year/:month/:day/:slug Or title :title based with is set by default.

You can change this by editing the SQLite Database and updating the permalink column, this will let you have custom URL for your posts, this will only affect URLs of your posts and not pages.

Backup the Database before making any changes to it.

You need stop Ghost, then access the Database using SQLite CLI.

sqlite3 content/data/ghost.dbCode language: Bash (bash)

In development mode the Database will be ghost-dev.db

sqlite3 content/data/ghost-dev.dbCode language: Bash (bash)

Use the query below.

UPDATE settings SET value = ‘/journal/:slug/` WHERE key = 'permalinks'Code language: SQL (Structured Query Language) (sql)

Now your permalink will be http://example.com/journal/welcome-to-ghost/, you can set journal to anything you like.

After this step you can start Ghost.

If you visit the settings panel in your Ghost admin, you will see. that the dated permalink has been tick (turned on), this is because Ghost believes that you are using dated permalinks.

If you want to revert, you can tick the dated permalink under settings panel in Ghost admin, this will set the URL back to the default :slug, you can re tick the dated permalink and enable the actual dated permalink.

Happy Blogging.

Have a question? Leave a comment below.

I compiled a list of software and services that I use to improve my workflow, here is the link to the list.

Darryl Dias

I’m Darryl. I’m a 3D Artist, Programmer and Linux enthusiast. On this site I share my insights, tips and tricks, tutorials, methods and best practices.