Why are my pages linking to 404 pages using WordPress? - wordpress

I made some pages in Wordpress and displayed a navigation so the user can click to go to those pages.
When you click on any of the links, other than the Home link, it will go to a 404 Page not Found Page and display a message as the one below:
The requested URL /new_mtt/about-us-2
was not found on this server.
I realized I don't have a page.php file. Do I need that in order to view pages other than the index?
Why are my pages not working correctly?

There has to be a .htaccess-file in your Wordpress-directory. In there should be the rules for url rewriting.
The problem could be: that file is missing, the file is corrupt or mod_rewrite is not allowed.

You most likely need to regenerate your permalinks -- that solves the problem around 90% of the time. Click on Settings, Permalink; then pick any option that's not selected, hit Save, pick the option you originally wanted again (likely a custom structure with %postname%), hit save again, and verify that it saved.
If it can't save, as with the previous answer, make sure you check that your .htaccess file has global write access.

Related

I want to change the page name in wordpress from capnel

I want to change the page name in cpanel but when after changing the page name when i try to open it it say page not found
I tried to do it manually but still not able to get it.
If you have changed the page name in cPanel, it's possible that the old URL is still being cached by your browser. Try clearing your browser's cache and cookies and then accessing the page again.
If that doesn't work, it's possible that the change to the page name may have affected the permalinks or the .htaccess file. You can try resetting the permalinks or updating the .htaccess file to ensure that the correct redirect is in place.
If you're still unable to access the page, it could be a server-side issue and you may need to contact your web hosting provider for assistance.

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.

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/

wordpress .htaccess & .htpasswd issue

I have a strange issue here. My client site is suspended due to spam messages by one.com. After deleting the comments, the technical support guy told me to generate .htaccess and .htpasswd file by using one.com's support page and upload it into root. Deleted old files and uploaded the new files a per the supporting guy. But site shown an internal error, then the technical guy said 'delete' both files and try. Then the home page is loading but inner pages showing 404 error.
Anyone here have a solution for this? this is the site http://www.jayabhattacharjirose.com/
Thanks in Advance
This is a problem with permalinks. Try the one of the following three solutions.
1: Set your Permalinks back to default, if things start working as expected then try re-setting Permalinks back to what you want.
2: Try going in your Dashboard to Settings > Permalinks. You don't need to change anything on the Permalinks page, but just click Save Changes at the bottom. Then check your site to see if that fixed it.
3: Try changing options on the Permalinks page if you want to change the way the URL looks from p=### to the /date/page format or others.
Reset your permalink to default and then again set it your required permalink structure so that WordPress creates a new required .htaccess file for it.
And if you have backup of your project then try to use the old .htaccess file.

WordPress front page (homepage) fails to redirect when static front page is set

I have configured WordPress to display a static front page as described here:
http://codex.wordpress.org/Settings_Reading_SubPanel#Reading_Settings
When I save changes and try to visit my front page, my browser displays the following error:
"The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
(source: flickr.com)
Changing cookies settings does not remedy the situation.
I'm using the theme Constructor (http://wordpress.org/extend/themes/constructor), which I suspect may be contributing to the problem.
How can I make WordPress properly display my front page?
create a page called home or whatever, go to
**Admin->Settings->Reading**
Change the......
Front page displays
1. Your latest posts
2. A Static Page
Select Static Page and from the dropdown select your newley created home/page.
if its not redirecting check your permalink settings...set it to default.
Check the homepage is working, re-apply any permalink settings you had..
If the page is still redirecting in a away it will never complete, then try opening your .htaccess file in the root of your wordpress site, delete anything inside and save it,
Again check your homepage... if its still not working, then it's def; down to your theme you are using, if there are particular theme templates for the homepage then that may be the cause.. no time to check the template myself just now, (maybe later)..
You could check the
admin->edit-page
you should see all your loaded pages on the site,
hover over the homepage listing and click "Quick Edit" onm the right hand side, have a look and check the template drop down menu for any homepage specific template that needs applied to that particular page, then click update and re-check the homepage status now.
"The page isn't redirecting properly. Firefox has detected that the server is redirecting the request for this address in a way that will never complete."
this problem happening when you redirect to a page who redirect you back. and it create indefinite loop of redirecting. So, the browser will trap and confuse and produce such error. Read you code again
maybe you need contact the theme author

Resources