Tags doesn't seem to work and redirected to 404 page

Hi,

Not sure if this is the right forum but I would like to raise a bug report here.

I have recently set up my Ghost blog at zinkohlaing.com and it is self-hosted via Pikapods.

Here’s an example URL that contains the tag “OMSA”

I can see from Inspect Element that it should be redirected to https://www.zinkohlaing.com/tag/omsa/

But when I open this link or click on the tag, it is redirected to 404.

Based on my research, it seems that my Route file needs to be updated/changed. But the thing is I haven’t made any modifications since the setup.

I have already deleted / re-added the tags and it is happening to all tags so far, including the newly created tags.

Ghost Version

5.100.1

The tag page is being redirected to /tag/, you need to check the routes and redirect config.

@Raki

Thanks for your reply.

Below is what they looked like.

Redirects

The problem comes from your redirect settings. Any route containing’ oma, gaming`, etc., will be redirected, so the tag page is redirected.

Thanks!

It’s because I used to have a Wordpress account that uses this type of URL:
zinkohlaing.com/omsa/{{sometext}}

I needed to remove /omsa/ and redirect them to correct URL in Ghost. Am I doing it wrong?

I have removed all redirects and it seems to work now :slight_smile:

So the trick is to use regex notation to only match the first part… so your first one becomes:

^\/omsa\/(.*): /$1

That’s going to only match lines that start with /omsa/, instead of anything with /omsa/ in it.