Mobile app version of vmapp.org
Login or Join
Barnes591

: WordPress permalinks with the category and the postname throw a "Page Cannot Be Found" error Background: I have developed and managed many WordPress sites over the years. Only one of these sites

@Barnes591

Posted in: #Links #LinkStructure #Permalinks #Webpage #Wordpress

Background: I have developed and managed many WordPress sites over the years. Only one of these sites has this problem, but, based on comments on the WordPress.org forum, others are having the same problem. So far, I have not seen a solution that works.

Problem: Links work with the default setting. This setting does not add a .htaccess file to the site. The addresses look like ?page_id=12. Permalinks with just the postname also work fine. But permalinks with the category and the postname throw a "Page Cannot Be Found" error.

WordPress Permalink Options:


Plain - default, no .htaccess file created
Day and name - just a radio button choice
Month and name - just a radio button choice
Numeric - just a radio button choice
Post name - this is the equivalent of adding /%postname% in the 6th option. This one works.
Custom structure - the code I prefer to use is /%category%/%postname%. This one does not work on this one site. This code does work on all the other sites I have added it to.


Environment:


The site is hosted on SiteGround.
The site is running WordPress 4.6.1
The site is using the Matheson theme.
There are only 9 plugins that have been checked for being up-to-date.

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Barnes591

2 Comments

Sorted by latest first Latest Oldest Best

 

@XinRu657

You should have no problem using the /%category%/%postname%/

Maybe try checking through your other settings on the sites it does work on and see if you can find something different that may be disabling it or hindering it from functioning the same as your other sites.

10% popularity Vote Up Vote Down


 

@Berumen354

Switch to a default theme and see if that permalink structure works or not. Outdated themes can cause issues with newer WordPress versions.

Then after this, try to deactivate one plugin at the time and check the links. One or more plugins are in conflict with structure.

Structure where you have just %postname% will work.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme