0

I have installed brand-new wordpress-4.8.3. My next steps were, as in WPBegginer - How to Include Category and Subcategory in WordPress URLs:

  1. In Dashboard/Settings/Permalinks, I've pasted: /%category%/%postname%/;
  2. Saved my permalinks settings;
  3. Edited & Published my "Hello World!" post;
  4. Visited http://localhost/wordpress/uncategorized/hello-world/
  5. Got:

Not Found

The requested URL /wordpress/uncategorized/hello-world/ was not found on this server.


Apache/2.4.18 (Ubuntu) Server at localhost Port 80

Bear in mind, it is brand-new fresh WordPress installation.

Then I've tried the hack with saving . (the dot character) as Category base inside Dashboard/Settings/Permalinks but it did not help. I want my permalinks to be structured like this:

http://example.com/category/subcategory/postname

How do I do that?


EDIT

If I save Custom structure as /index.php/%category%/%postname%/ it does work, giving me http://localhost/wordpress/uncategorized/hello-world/ in my post edit mode, with editable hello-world part. However, I do not want the index.php part in my permalink

  • I'm sure "the dot thing" does not work in WordPress 4+. – Max Yudin Nov 15 '17 at 17:51
  • Does Wordpress show you the right permalink (like you expect) when you are in post edit mode? – Luckyfella Nov 15 '17 at 18:29
  • Yes it does, which in my case is localhost/wordpress/uncategorized/hello-world – wscourge Nov 15 '17 at 18:39
  • You’re seeing your server’s 404, not the WordPress theme 404, which means those requests aren’t being routed to WP. Does your server have mod_rewrite, and is it parsing htaccess files in your site’s root? – Milo Nov 15 '17 at 23:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.