I tried to update my site's permalink structure from the default to this: /%category%/%postname%/ but now the category links are redirecting to the not found page.
Strangely enough the permalinks for the custom post types are working fine.
I've been trying to find the solution for ours now, but I'm stuck. I think I'm missing something obvious here. Can anybody help me?
Thanks!
Related
I'm running a WP site and like to have my posts and categories with the same base, for example:
mysite.com/base/%postname%
mysite.com/base/%category%
I changed the permalinks as can be seen above, but only the category is working. The posts give me an 404 error.
I've heard that this solution can be achieved with a rewrite rule in the functions.php, but I don't know how.
Can anybody please help?
Thank you guys in advance!
I am trying to set permalinks as:
domain.com/category_name
domain.com/postname
And I can't find a way to make this work.
On screenshot down below you have my settings of permalinks, thats the set-up I want, but I am getting an 404 on category pages.
I tried to reset clear htaccess and flushed permalinks to recreate it. (its writable)
I tried to put "." as category base.
Nothing helps.
If I set in settings custom structure : /%category%/%postname%/, and I set category base to ".". That works, but I get post pages under category and I dont want my post page URL to have a category in it.
Anything is helpful! :) Thank you
Okay, I found some solution if someone needs it in future:
I left my settings in permalink as
Custom structure: /%category%/%postname%/
Category base: .
And I installed plugin: "Permalink Manager Lite" and used it to manually remove category from the URL of each posts.
I am listing out all of posts on the post page. Also the categories are listed in a sidebar. For some reason some links are redirecting to a post page. Can someone explain why this might be happening? The .htaccess file is the default that comes with wordpress as well. I am stumped. Also, my permalinks look like this /weekly-insights/%year%/%monthnum%/%day%/%postname%/. I have tried refreshing my permalinks as well. If anyone could help me out where I am going wrong it would be appreciated. Again, I am just trying to click a category link and have it go to that particular page.
I just created some pages (not posts) on a wordpress site, and a strange thing happens :
each page have a distinct permalink, that works.
A few time afterwards, I try to access to the page via the permalink, but it leads me to another page that has its own permalink.
For example : http://www.benevolat.org/partenaires/ gives me the page for which permalink is http://www.benevolat.org/assurance-responsabilite-civile-association/.
I tried to modify the permalinks, to change the permalink structure, but the results are the sames. The only structure that works is the default one (?page=XXX).
The only topics I have found on the wordpress forums deal with 404 errors, but it is not my case.
Have you ever faced this ?
Thanks for your help,
Jérémie
I have been having a few problems with my blog and was hoping someone on here may be able to help me out, i have set it up so the the blog is not on the home page but sits on a different page e.g. /blog/.
The permalinks for posts were set to /%category%/%postname%/ and were displaying as so site.com/category/postname, i wanted it to keep the blog prefix (site.com/blog/category/postname) so i changed the permalink structure to /blog/%category%/%postname%/ to work.
Now i want to remove the category base, i have done this by putting /. in the field but this removes /blog/ from my permalink. Is there any way around this?
Sorry if i have missed out any crucial information, let me know and i will add it!
Thanks a lot!
Try this plugin http://wordpress.org/extend/plugins/wp-no-category-base/
You can learn more about this plugin http://tutslog.com/tutorials/plugin-wordpress-supermalink-139.html if you want add dynamic permalink content