I have made a custom archive page, so the page is working for single words like - National Category. For this the archive page works as it should be but when it comes to two words like - Economy and Business, now in this case the archive page shows error and the URL has %20 which means space (searched on google). But why is the error 404 showing up ?

http://mywebsite.com/category/Economy%20and%20Business - This shows error 404 http://mywebsite.com/category/National/ - This works

closed as off-topic by Mark Kaplun, Jacob Peattie, fuxia Oct 6 at 20:51

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions that are too localized (such as syntax errors, code with restricted access, hacked sites, hosting or support issues) are not in scope. See how do I ask a good question?" – Mark Kaplun, Jacob Peattie, fuxia
If this question can be reworded to fit the rules in the help center, please edit the question.

  • Without any further information this question is just an invitation for guessing, and the simplest guess is that (as rick says) you have nothing in that url. If that is not true you will need to edit the question and explain why do you think 404 is the wrong response. – Mark Kaplun Oct 2 at 6:25
  • These are not urls WordPress would create for page/post or category slugs, they get sanitized for exactly this reason. How did you create these and what should they display exactly? – Milo Oct 2 at 13:59
up vote 1 down vote accepted

Without the actual URL that you are having difficulties with, it's hard to answer.

But, I suspect that the URL really doesn't exist. Which is why you get a '404' not found error.

If you edit your question to include the actual URL (put it in a 'code' block), you might get a more specific answer.

  • I have added the url structure but I cannot specify the exact URL. Can this help ? – topper1309 Oct 2 at 5:04
  • Take a look at the Permalink shown on the page when you edit the page via the Admin, Pages interface. It may be that there are some unallowed characters in there, or it doesn't match the URL you posted. At worst case, copy the content from the page into a new page and use that new page instead. – Rick Hellewell Oct 2 at 17:50

Not the answer you're looking for? Browse other questions tagged or ask your own question.