certain section's permalinks are throwing a 404 - wordpress

We have migrated our WP site to new hosting and since then one section using custom content types manager is throwing a 404. The other ~4 work correctly.
I have cleared the plugin's cache and imported the .json file correctly.
When I change the permalinks to default from post name they load properly. Any idea on how to get this section working?

I guess the problem you're facing on Post name permalinks. Save that option again. If it not working,
select custom structure and give index.php as a prefix
eg: /index.php/%postname%/

Related

Error displaying oEmbed Wordpress

I've a problem with my wordpress website. When I insert some url for being embedded, it's not working fine.
Here is the issue URL : https://www.duosia.id/windows/cara-mengekstrak-files-menggunakan-winrar-dengan-mudah
And here is the Screenshot :
When I try to visit the embedded url. It's return 404 not found. You can check the embedded url here, https://www.duosia.id/windows/cara-mengekstrak-files-menggunakan-winrar-dengan-mudah/embed/
I've try these common solutions.
Update everything including WordPress, the theme and plugins. Available updates appear in Dashboard > Updates.
Deactivate all plugins in case there is a conflict. If the problem goes away while all plugins are inactive, then reactivate them one by one to determine which is causing the problem.
Switch to the default theme (such as Twenty Thirteen) then try to do what was not working. If the problem remains, it is a general WordPress or hosting issue. If it happens only while using our theme, please let us know.
Clear cache in both your browser and in any caching plugins that you are using (also disable services like CloudFlare, if used with your website).
Revert code changes if you have modified the theme’s code. If using a child theme, reactivate the parent theme.
But, seems no one work.
The WordPress post embeds don't seem to be working on your site.
This URL shows a live example of the problem:
https://www.duosia.id/windows/whatsapp-for-pc/
The two embeds present in that URL are returning a 404, therefore, oEmbeds are not loading properly and showing the 404 page:
https://www.duosia.id/windows/facebook-messenger-for-pc/embed/#?secret=kMPv636bx1
https://www.duosia.id/windows/line-for-pc/embed/#?secret=65m4VpxiYi
Have you tried testing those URLs in the plugin "Rewrite Rules Inspector"?
You should see something like this for any of the "embed" URLs:
index.php?name=$matches[1]&embed=true
Also, have you tried flushing the rewrite rules in WordPress or maybe setting the permalink structure to a different/default one (right now you seem to be using a structure of "category/post-name") to see if it changes anything?
For the file that you are embedding, are you uploading it to the Media Library or some other plugin?
First I would check on the server to verify that the file you are looking to access does exist.
Once you know that the file does exist, then repeat the steps you have listed again.

Changed name of subdirectory - creating pages doesn't work

I tried to change my WP subdirectory from www.example.com/test to www.example.com/live, and frontpage and login works as it should. But when I try to access former articles or pages, or create new I just get a 404 error.
E.g www.example.com/live/my-first-article gives 404, then redirects to frontpage (www.example.com).
I've defined the site URL and home URL in wp-config, changed the name of the folder, and changed "test" to "live" everywhere in the database.
Anyone have an idea or encountered this problem before?
It is most likely your .htaccess file which isnt updated. You can update it by going to
Settings > Permalinks > Save Changes

My WordPress Site Shows 404 Error When I Try To Post.

For more than 4 days now, i cannot publish my WordPress website.
It shows: 404 Error when i try to publish a post in the website or do anything that will load to another page.
Also i cannot work on the widget area because it's not saving any work there.
I have tried re-saving the permalinks and also even deleted the .htaccess file and upload another one and yet no sign of working.
What is the main problem please?
404 Errors are usually URL related. Make sure Wordpress and all of your plugins are up to date. I would also change your permalink settings and see what happens.

wordpress permalinks not working 500 error

i made a mess of some kind my website was running perfectly but i did some changes to wpconfig i cant seem to remember and the result is that if i dont use permalinks and use simple page id the whole website works and if i try to use permalinks all the individual links break but home page as well as admin panel keeps working .
It always gives 500 internal server error
Any one got any ideas what could have gone wrong .
P.S.> I have deleted .htaccess and created a new one and copied the code given by wordpress but its still not working.
my website is NewsKase
I had the same problem. My WordPress site was running perfectly until I changed my permalinks. All my individual links break but the main page as well as admin panel keeps working. When I use simple page id as permalink the whole website works.
The are several thing that can cause this problem. The following post lists some possibilities you can go through to find the root of your permalink problem.
https://economictheoryblog.com/2016/07/29/self-hosted-wordpress-permalink-problems/
Try the following:
Get a fresh copy of wp-config.php and enter in your DB details
(username, pw, name, table prefix).
Delete htaccess file
Regenerate permalinks (admin - settings - permalinks)
Ensure server has mod-rewrite on

Wordpress template pages not being displayed in 3.2 :|

Few months ago, I developed two template pages on wordpress 3.1 and they were working fine. Now, I installed latest wordpress software. I created a new page with the same name and selected the template. But the link is showing a "404 Not Found" error.
My site URL goes like this: http://localhost/myBlog/about
where "about page" has to use a template. The same permalink is shown when creating the page but viewing page is showing 404 error. It's weird. May be some permalink issue?
Well assuming this is a new installation and not an upgrade, I am guessing that your permalink structure is messed up. There are a couple ways to fix this. In general, Wordpress tries to modify your .htaccess file itself.
Go to your old installation and look under Settings -> Permalinks. If it is different from your new install, then change them to be the same and save. If they are the same, then change it to something else and then change it back. This should force Wordpress to resave the settings to your .htaccess file. If it can't write to the file it should tell you.
Alternatively you could look at the .htaccess file of your old installation and copy the values there over to your new installation. Although I think letting WP do it for you is probably the safer route.
If you can access your database, You need to go to the wp-options table and change the url there. The other options there. Were you working on a local server?

Resources