AnswerBun.com

Correct permalinks and 404-error

WordPress Development Asked by Vlad on November 1, 2020

I have a paid plugin that creates a custom type categories and posts in this categories. I want to get URLs like site_name/category_name/post_name. This plugin forms links like this:

  • List item

for categories – site_name/category_name

  • List item
    for posts – site_name/category_name

I have installed plugin Custom Post Type Permalinks, configured it. When I click on post link, I have a 404 page of theme (not server). But URL is right. In the post edit page the permalink is right too.
Pages shows correctly.
I can’t change any file of paid plugin or theme (it’s already child theme). Can I resolve my problem with .htaccess or m.b. some another way?
P.S. By the way, I’ve already tried to configure permalinks in Settings->Permalinks->Custom structure but result is the same.

One Answer

This is a common problem (that I just finished fixing). It seems to arise in a few different ways. Some people seem to be able to fix it by selecting the default permalink format and then switching back to their preferred one.

In my case, the problem seemed to be that I didn't have mod-rewrite properly enabled. Once I did the steps in this post, the problem was resovled.

I think I may have also made [this change], (Category links suddenly started giving 404 errors), but I'm pretty sure it was fully enabling mod-rewrite that did the trick.

Answered by abalter on November 1, 2020

Add your own answers!

Related Questions

where is admin footer?

1  Asked on December 8, 2021 by alif-azhar

     

Remove wpautop from retrieve_password_message

1  Asked on December 8, 2021 by scooterlord

 

WordPress admin display post type tags as checkbox

1  Asked on December 8, 2021 by the-grimmer

   

Sort by page information by Ascending Numbers

1  Asked on December 6, 2021 by owen-oneill

       

Multiple meta_query not returning rows

0  Asked on December 6, 2021 by ookmnnsocjvpkcbnml

   

How to add widget in main menu

1  Asked on December 4, 2021 by mohammad-kashif

       

Improving wpdb queries with large data

1  Asked on December 3, 2021 by dcp3450

   

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP