WP post and category should have same base - wordpress

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!

Related

Wordpress category permalink 404

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!

How to change permalinks format in wordpress?

Sorry if my question was basic or stupid. Please help me how to do this thing i m new to wordpress.
I have permalinks for pagination page like this
www.website.com/customtaxonomy.html/1
www.website.com/customtaxonomy.html/2
but i need to change this permalinks as
www.website.com/customtaxonomy.html?page=1
www.website.com/customtaxonomy.html?page=2
only for paginations pages.
I cant comment as I need 50 rep. I believe that you will need a custom function for this, maybe this will help: https://wordpress.stackexchange.com/questions/57070/change-the-page-slug-in-pagination - its not directly the same but might help you figure it out. The only other thing I can suggest is a rewrite with the .htaccess file. Give this a ganders: simple .htaccess redirect : how to redirect with parameters?

Change /product-category/category/name to /product-category/name

My product category urls currently look like: /product-category/category/category-name
Where the category-name is the only changing part. I would like to change /product-category/category to just /product-category, so my final url would look like: /product-category/category-name
Most of my google searches have yielded results relating to removing /product-category but I haven't found anyone talking about having this redundant extra /category in the url.
Any help is much appreciated.
You can solve this right in Wordpress. When you install woocommerce, a new setting shows up in you permalinks settings. In your wordpress dashboard, go to Settings > Permalinks. Then when you scroll down beneath your regular wordpress permalink settings you will see one for woocommerce. There you can choose what you want to actually display.
Hope this helps out.
Update after comment
Ah I see, I read to fast. I would think you would have to do a rewrite to the core wordpress function for categories. Probably a decent amount of work in creating your own plugin to do it. Looks like this plugin does a good job of it but I haven't used it. Let me know if it works.
http://wordpress.org/plugins/no-category-base-wpml/
Let me know if it works

Permalink issue on Wordpress

I changed my Permalink structure 1 year ago to /%postname%/zippy
Now I want to change it back to /%postname%/, But when I do this, there is no redirection from **/zippy to posts.
Thank you for helping me out of this mess.
This plugin http://tutslog.com/tutorials/plugin-wordpress-supermalink-139.html may can't help you fix this issue. But It helps you avoid issues like that.

Wordpress permalink

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

Resources