Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

Filter by
Sorted by
Tagged with
0
votes
1answer
7 views

I get a 404 page on /wp-admin but not wp-login but as soon as I login I get a 404 again

If I visit /wp-admin I get a 404 error. If I go to wp-login.php I see the login screen. If I login badly it errors, if I login correctly it redirects to /wp-admin and 404s again. Things I've tried: ...
0
votes
1answer
14 views

Xampp 7.3.3 fresh install of WordPress 404 pages unless permalink is set to plain

I have been running xampp 7.3.3 for quite a while but i have recently installed 2 fresh installs of wordpress and if the permalinks are set to anything other than plain the pages are showing 404. i ...
1
vote
1answer
28 views

404 error- issues with pages after adding custom rules for posts

I am trying to create a custom translation for my website. Quick Story: I am facing "404 error-Page Not Found' issues with pages after adding custom rules in functions.php $newrules['^th/(.*)$'] =...
1
vote
0answers
23 views

Question about repurposing WordPress 404 handler

I've been experimenting with repurposing WordPress's 404 handler/template file for a Real Estate site that I'm developing. I understand that when a non-existent URL is requested, the 404 page gets ...
0
votes
0answers
8 views

Why my Home url is returning 404 error [closed]

Hi my website link is https://www.careerguarantee.com/ But very often I see in my 404 monitor that my website url: https://www.careerguarantee.com shows 404 error But if I use this link and copy paste ...
0
votes
1answer
21 views

My custom php file keeps 404'ing in WordPress when I call it. What am I missing?

I have a custom file I made called: /wp-content/plugins/listrak-newsletter-api/listrak-newsletter-api.php When I try to call it in WordPress, I get redirected to a 404 page. But the file exists 100% ...
0
votes
0answers
14 views

Unable to change 404

My site is currently just displaying a generic "404 - not found" page when users hit nonexistent pages. I tried editing the theme's 404 page but nothing changed, then I tried adding a 404....
0
votes
1answer
14 views

I can't enter the control panel of my wordpress site after channing the URL to https://

I have a big problem and I am somewhat panicking about this one. My website didn't have https enabled so i went to the settings panel, changed the website link to https://andthewebsitesname. Now when ...
0
votes
0answers
7 views

WordPress site redirects to homepage on url sitename.com/gibberish but shows proper 404 page on url sitename.com/?p=2423424

When I use the URL sitename.com/gibberish, I get 301 redirected to the homepage instead of the 404 page. However, when I use sitename.com/?p=53452, where 53452 is a non-existent post id, I get a ...
1
vote
0answers
13 views

WP_DEBUG must be on, otherwise edit post or page will show 404 error

encountered a very strange error: my WP_DEBUG must be on (set to true), otherwise editing post or page at the admin panel will show the 404 error. While the save post/page can still be seen. The ...
0
votes
0answers
39 views

Assigning CPT as post child to another CPT results in 404 for single-childpost.php

I have two custom post types: movie and screening. screening is a child of movie, and a movie can have several screenings/children. (screening is registered as hierarchical, both are publicly ...
0
votes
0answers
17 views

Check current URL is 404 in pre_option_stylesheet filter hook

I am trying to check the current url is 404 or not in the pre_option_stylesheet filter hook. As this is the early hook called by wordpress, due to which wordpress default function like is_404 not ...
0
votes
0answers
15 views

Has a PHP update given me a 404?

I have just changed hosting to Hostgator and installed wordpress to site Renuon.com.au I had to update PHP, which I did to ea-php74. The site loads the welcome Wordpress site but when I go to wp/admin ...
0
votes
0answers
14 views

Custom query give me 404 when paginate

in my site I have "CPT Clients" and each client has "CPT Success Stories", also I have a list of client's taxonomies, and when access to one of thees, I need to display the stories ...
0
votes
0answers
24 views

How to use paginate_links on front-page.php with a custom post type?

How do I use the function paginate_links in front-page.php or, if I cannot use it as it should be used in front-page.php where it should be better to put it? I have found this post https://wordpress....
0
votes
1answer
20 views

Some archive by year page return 404

When clicking on archive in my wordpress blog I get a list with links to different month, e.g., October 2020, ..., June 2019, ... When clicking on a month I get a view with posts whichs were published ...
0
votes
0answers
12 views

404 when using add_permastruct()

My wordpress site has the following URL structure defined in WP Admin > Permalinks Custom Structure : /articles/%postname%/ For all my default posts. I also have the following rule defined within ...
0
votes
1answer
13 views

Custom post type single page 404

I have read a lot similar questions, but none of them saves me. The site have multi-custom post type registered, others are ok to load a single page, except one, function cabinet_post_type(){ $labels =...
0
votes
1answer
19 views

wp-json Returns 404 Upon Plugin Activation

I'm creating a custom plugin. Recently, it's created errors and I don't know the cause. When the plugin is activated I receive this error in the Site Health Screen: The REST API call gave the ...
0
votes
0answers
34 views

Getting 404's on *some* local Wordpress pages with built-in PHP server

Using the built-in PHP server on my machine, my local install of Wordpress runs fine, with pretty permalinks and all that. But some pages return 404’s – the PHP one with the purple header. For example,...
1
vote
1answer
15 views

WP admin page gives 404

I have a problem with my admin page of the site http://www.fotoexpo202.nl . I can not reach the inlog anymore of this page: Not Found The requested URL was not found on this server. Additionally, a ...
0
votes
1answer
34 views

MySQL-inserted custom taxonomy term lead to 404, flush rewrites doesn't help

I import my custom terms from a desktop program using MySQL queries. But all the terms lead me to a 404 page. I tried flushing rewrites many times, it didn't help. It only helps when I save individual ...
0
votes
2answers
54 views

Completely disable RSS feeds on WP 5.5.2 and show a 404 page instead of die();

I'd like to completely disable RSS feeds on my WP website. Can someone please guide me on how to throw a 404.php page and set the headers to 404, when someone types in https://example.com/feed/ here ...
0
votes
0answers
25 views

Javascript file loads only on homepage, not on other pages (404 not found error)

I am getting an issue when loading my functions.js file. On the homepage everything works, and that is because the url is "www.mywebsite.com/wp-content/theme/myTheme/function.js" I get 404 ...
1
vote
2answers
26 views

Non-existent page returns code 200

I have a page like mysite.com/contacts/ If I enter non-existent urls like: mysite.com/contacts--/ mysite.com/contacts%20/ i get status 200 and the page opens mysite.com/contacts/ although if I enter: ...
0
votes
1answer
42 views

WooCommerce return 404 in the product page

I am making an Ecommerce website with the plugin: OCEANWP. I had an issue with links of products, because they aren't the same so i changed it in Setting > Permalinks, but after when I go to the ...
1
vote
2answers
38 views

Site searches by Python for non-existent assets

I've recently started paying greater attention to my 404 errors in order to clean up what I can and improve my site's SEO and ranking, and have noticed something that I don't understand. In my 404 ...
1
vote
2answers
148 views

Deny access to a path (give 403 or 404 response)

I know this should be easy. BBpress creates user profiles at /forums/users/. I'd like to make them unavailable to anyone, and not be indexed by Google. I've tried the following (in .htaccess) and ...
0
votes
1answer
24 views

How to fix mime-type and (after disabling nosniff) 404 errors for css and js files in staging site

I set up a staging site from the live site with my hosting, A2 Hosting. The pages are all messed up, and in the browser console, I could see lots of mime type errors (photo for examples). The errors ...
0
votes
0answers
14 views

Rewrite rule for changing permalinks. Post name to permalink with Category

SCENARIO A I have an wordpress site that has existing posts. Permalink structure is currently configured to https://sitename.com/%postname%/ I need to change the Permalink structure to https://...
0
votes
0answers
29 views

Too many redirects on wp-login.php and wp-admin 404 not found

I am having issues with my wordpress website. I can't login in at all. When I try to goto wp-admin I get a 404 page not found error and it redirects to wp-login.php (wp-login.php?redirect_to=https%3A%...
0
votes
0answers
20 views

How to redirect if 404 error in wordpress then redirect 404.php url

i need to redirect my wordpress blog url to 404.php (file) If some type wrong URL like example.com/blog/fgsdgfdg then I need to be redirect URL to example.com/blog/404.php Below code not working ...
0
votes
1answer
22 views

Wordpress /page/2 gives 404 when custom permalinks is set to %category%%postname%

My wordpress permalink settings, Custom Structure: %category%%postname%. Used next_posts_link() in custom theme in archive.php to get next posts link. Result: Next Page >> (display as expected) ...
0
votes
1answer
18 views

Could use some help moving site to subdirectory, what am i doing wrong?

I've been trying to move my WP site to a sub-directory, let's say /blog instead of mysite.com, i've been able to do this successfully in the past but now everything is going wrong. I followed several ...
0
votes
1answer
97 views

How can I redirect users on the new 404 page without plugin?

I have a 404 page in my theme but I am not using that page. I have created a new 404 page in WordPress using wpbakery page builder. I need to know how can I redirect users on the new 404 page without ...
0
votes
1answer
12 views

Wordpress Installation in Subfolder only works half

Hello I need to pick your brains here. So one of my projects went live a long time ago. The customer then asked me to build a second project which was supposed to be go live on a different domain. Not ...
1
vote
1answer
37 views

Fixing custom 404 pages broken by Wordpress in a subdirectory

I used Installatron to install Wordpress in a subdirectory of an existing PHP website, to add a blog to that website. My main website is administered via cPanel. Here's my website directory structure: ...
1
vote
1answer
26 views

404 error when passing “cat” parameter to URL

I encounter a strange problem with our WordPress site. When I check the URL: https://www.example.com/outlook-repair/ Everything is fine. When I pass several parameters to the URL, for example: https:/...
1
vote
1answer
16 views

WP is redirecting instead of going to 404

Why is wordpress redirecting to an existing page if the uri is staring like an existing page instead of redirecting to a 404 ? Example, i have theses pages mysite.com/aeroport mysite.com/intralog ...
0
votes
0answers
17 views

Status Code 406

i have a site. when I am checking my website's health I am facing an error. my site URL code is shown 404 and 406. now please help me to resolve this problem. URL
0
votes
1answer
62 views

Redirect to /404/

Is there a way I can redirect the URL slug of the 404 template to /404/ so so for example if I have /category/media/blah it redirects to /404/ Is that possible I don't know if it can be done using ....
0
votes
1answer
169 views

Images not loading on webpage, and links to other media give 404 Not Found

Had some recent problems where to start with only homepage text was visible, all other pages/links gave 404 Not Found. Now managed to get pages to function but all images fail to load, plus links to ...
0
votes
1answer
25 views

Woocommerce posts and products links works only once and then get 404 error

Permalink to products and post of my website getting 404 error. after saving the permalink type in Setting -> Permalink page they will work correctly. But if I refresh the links they get 404 error ...
1
vote
1answer
29 views

Permalinks by page/post name returning 404

All my content is currently setup as pages. I want to setup permalinks with page names. I read some posts online that said choosing %postname% path should render the content. But this does not work. ...
0
votes
0answers
8 views

Website works for visitors, but search analytics reveals that the pages are going to 404.html?page=id

I have a wordpress website with a custom theme, and the code is on github. The website works and users are able to browse, interact, etc fine. I have no complaints from users on the site. But when I ...
0
votes
0answers
15 views

Reactivating WP Multisite after deactivated

The Multisite (subdomain version) defining lines in my wp-config.php file were some how commented out. I uncommented them, but now I am unable to get to the other sites on the network (Site2). Site2,...
0
votes
0answers
7 views

404 on all plugin activation

I have a problem that i get a 404 on deactivation of a plugin. It happened since today. I tried to see if something is up in error log, but its not. When i click on deactivate I go straight to 404 ...
0
votes
0answers
12 views

404 error on subcategry archive page

I wonder if you can help. This is, for me, one of the most frustrating aspects of WordPress. This question has been asked numerous times on various forums and there is never a satisfactory answer. To ...
0
votes
0answers
9 views

Show content/template for the /tag/ or /taxonomy/ part of the URL in Wordpress

Heu, I've been trying to figure this problem out but can't quite find an answer. On my WordPress site, the URL for tags is mysite.com/tag/tag-term. This displays fine using the tag.php template. ...
0
votes
2answers
107 views

Custom structure permalink preventing 404

I am trying to find out what impact setting a custom stucture prefix in permalinks has on 404's I have a custom structure of: /news-opinion/%postname%/ This is working as expected if you tried to go ...

1
2 3 4 5
17