Specific WordPress permalinks link to wrong page - wordpress

I have a somewhat strange issue with WordPress today. This behaviour has only begun in the last week or so as far as I can ascertain.
Any page with the slug "downloads" links to it's parent page instead of to it's own page.
I have tried the following:
Reset permalinks to default and then back to %postname%
Disabled all plugins
Physically cleared the cache
But none of the above fix the issue. The weird thing is that this behaviour is only happening for pages with the slug "downloads". For all other slugs it is fine.
For example there are multiple instances of the slug "get-involved" with different parents and all work fine. But when the same is done with "downloads" the links redirect to their parent. Is anyone else experiencing this issue?
I have also verified in fiddler that the pages are not redirecting, they are actually linking to the parent page with a response code of 200, there is no 301 or 302 thrown.

WordPress will automatically duplicate the same slug with a new name but you should check again, maybe you've re-writing slug manually before. And check your .htaccess.

Related

Wordpress redirects to wrong page after renaming

I was changing the structure of my wordpress page making some changes to names of the pages. I renamed the pages e.g.
location > gallery
howtogethere > location
Now, I think, wordpress seems to be smart and whats to catch everything that goes to location and forwards it to gallery. The problem is, there is a new page location. When I try to access location via domain.com/location I get redirected to gallery.
The question is where are those redirects stored and how can I delete them?
Check the permalinks below Page title and if that is not changed to your changed page name change that and your problem is solved!
It is very possible that this is a cache issue. You can try deleting the cache in your browser, or you can try visiting your page from a browser that has never visited your page before.
It is also possible that it is a server side cache issue. I do not know if WordPress caches things like this, but if they do you can assume it will start working as expected eventually.
You can try to clear cache also install that plugin to manage and create redirects:
https://wordpress.org/plugins/redirection/

Redirects to the page even if url is wrong

Hello I have a problem that in my opinion is linked to permalinks, but I'm not quite sure.
The problem is that my site does only care about the last part of the argument in the url.
For example https://apriori.photo/kontakty/price does not exist. But it 301 redirects to https://apriori.photo/arenda-fotostudii/price/
I tried deactivating all the plugins and setting a default wordpress theme, the problem stays.
My permalink structure is : /%category%/%postname%/
WordPress has a feature where it automatically tries to redirect to a page which it deems to be 'the correct page' based on it's name. In your case, because the page ends with 'price', WP finds another page with a similar path and thinks it should redirect there.
To prevent this, you can disable the redirect using the following:
// In functions.php
remove_action('template_redirect', 'redirect_canonical');

All pages and posts in Wordpress redirect to homepage

I've been having this problem a couple times now and I'm not sure what is causing it. I have tried disabling all plugins, resetting permalinks, and resetting to the default .htacccess file but this time I seem to not be able to fix this issue.
Whenever I try to visit any post or page, instead of displaying a post at /post-name/ it displays a list of my latest posts.
I thought I read about the publishing dates affecting this once but I'm not sure.
Any help you could provide would be awesome!
edit: I've installed and activated a different theme and it did not solve the problem. I still see a list of lastest posts on every page/post.
If you have the Yoast SEO plugin enabled, try deactivating it or making sure there are no links with permanent 301 redirects to Home

wordpress category page 404

I have updated a category slug and now my category page for that category is displaying a 404. I have tested doing this on a staging site and it works fine but when I do this on production for some reason I get a 404.
I have,
resaved permalinks hundreds of times
deactivated plugins
disabled all caching
restarted my server
I am completely confused and cannot understand why wordpress is so fragile around permalinks and urls.
Thanks
I went to Settings > Permalink, I changed nothing, validated and... it worked. Perhaps a default setting was missing.

404 on taxonomy links on Wordpress site

I've read a lot of different posts online on this, but nothing seems to be working.
I'm working on a Wordpress site. Despite individual post links working exactly as intended, (e.g. http://ubicomplab.org/people/jwu), the main taxonomy pages, http://ubicomplab.org/people, etc. redirect to 404.
I have tried modifying .htaccess, deleting .htaccess, disabling plugins, but nothing seems to work. I have also tried rolling back the contents of wp-content to way before this error started occurring, to no effect.
Upon trying to "Edit Page" the 404ing link above, I get an error about how "post 422" is in the trash. There are no posts in the trash, however. I'm not sure why it's specifically post 422.
Could there be something wrong on the server side? If so, what could I do? I have access to the kettle server, but I'm not sure where to begin looking.
Try savings your permalinks again, sometimes this works for me.

Resources