Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Why when I click on a link into the WP admin panel I am redirected to a link that doesn't contains wp-admin prefix, so I obtain 404 error

I have installed a WordPress instance and I a facing the following problem. After that I access my admin panel via the URL: https://MY-DOMAIN/wp-admin I am correctly redirected to the admin panel. The ...
0 votes
1 answer
17 views

Page not found: Custom search form with a custom search page

Let me show you an example of what I'm trying to achieve. On BBC website when you click the search BBC button on the navbar it brings you to a search page (https://www.bbc.co.uk/search). When you put ...
  • 101
0 votes
0 answers
20 views

remove rel=next on category page (if <link rel="next" URL is showing 404) it need to remove link from header tag

We are using WordPress -version 5.7.2 Theme: Newspaper -version: 11 For SEO: Yoast SEO -Version 16.7 Problem description: to display the category list we have pagination. if I reach the last page from ...
0 votes
1 answer
22 views

404 page is not the same when using PHP code in functions

Based on a condition I want to show 404 page and I have the following PHP code in functions.php function wpse91900_force_404(string $template): string { global $wp; $current_url = home_url(...
  • 177
0 votes
1 answer
20 views

Problem with custom loop navigation inside the blog page

I have a problem I am not able to solve. I have a custom theme with some custom post types and I need to display an archive for all CPT somewhere in my site. After some reading, I decided that the ...
0 votes
1 answer
9 views

Wordpress broken after vhosts setup

I am working locally with wordpress installation using Xampp, after using vhosts and changing wordpress options home and siteurl to wordpressurl.site , my website has been broken stylesheets and ...
0 votes
1 answer
24 views

Site is working but we got 404 not found error in wordpress

I have a wordpress site hosted on AWS. Site is working fine but I'm facing an issue. When the page loads, we get 404 not found error for that link in console first. It is happening on all the pages ...
0 votes
0 answers
15 views

Lots of 404 errors of pattern <BLOG_URL>/null&rand=<RANDOM_NUMBER>. Why?

I can see a lot of 404 hits logged in the redirection plugin. It looks like they are made from some bad actors/bots. Does anyone has same experience? What is the exact root cause? Any appropiate ...
  • 101
1 vote
1 answer
31 views

404 error comes up when I go to wp-admin after first installation [closed]

I just installed wordpress for the first time. When I go to mywebsite.com/wp-admin a 404 website error comes up. I went through the routine of changing the plugins and themes names although I never ...
  • 11
0 votes
1 answer
31 views

Custom taxonomy throw error 404

So in my homework I was given code example and it works for teacher, but not for me. So from what i understand that I'm creating custom post type and custom taxonomy for it, also there is filter that ...
0 votes
1 answer
22 views

Reciving Error 404 blog/page/2/

I can't seem to understand the issue here with my pagination? when visiting /blog/page/2 page goes to 404 page. Help me guys? <div class="row"> <?php ...
0 votes
1 answer
38 views

404/500 error on content images if Referer header is from another domain [closed]

Not very familiar with WordPress so I'm not sure what's causing this. Essentially, we have a few image assets stored under wp-content. When we access some assets (i.e. cmssubdomain.apex.com/wp-content/...
  • 113
0 votes
0 answers
26 views

Show index.php template instead of 404 page template

I have some posts that were permanently deleted, however, instead of wordpress returning the 404.php page template, it is returning the index.php template. In other posts, the behavior is right, but ...
1 vote
1 answer
99 views

Why is my Javascript console showing a 404 error for a file called "null" on a clean Wordpress install?

Every Wordpress site I am building shows 404 (Not Found) error in the Javascript console for a file called null. I have confirmed that this happening on a clean install of WP 5.9.3 without any plugins,...
  • 141
0 votes
1 answer
25 views

List page is showing 404

I have built a new site based on a content from an old one. Also, there is some partial content in another WordPress blog which I have to import. Unfortunately, on the blog I don't have full access, ...
  • 101
0 votes
0 answers
28 views

How can stop redirects 404 in wordpress

Currently, all 404 errors are being redirected to the page with the following uri: www.example.com/woops (previously above page was called : www.example.com/404-page however we changed the name from ...
0 votes
1 answer
26 views

How to Redirect WordPress domain.com/?anyword to 404 Page?

Recently I Found some error on WordPress sites that when someone enter a question mark after the root domain and type any word, url shows the Home Page of instance: For instance, Root Domain is abc....
0 votes
1 answer
111 views

Theme javascript/css 404

I have recently installed WordPress 5.9.2 on my VPS using Apache2 on Debian 11. I want to try some different themes (partially because I think the editor for the new Twenty Twenty-Two theme is clunky ...
0 votes
1 answer
32 views

WP function won't work on 404 template page

I made a custom template of error 404 page. In my header.php i use the_time() function to display current date. There is some problem with 404 page because the_time() function won't work, not return ...
  • 145
0 votes
1 answer
25 views

One Custom post type 404's others don't

I've created 7 custom post types and all but one works. I don't even know where to go from here. I've flushed my permalink structure, and that didn't work. The following code is the array that I'm ...
1 vote
1 answer
150 views

Wordpress 404 on Subdomain

I have taken a copy of my Wordpress website and set up a subdomain, and virtual host (/var/www/subdomain/) on the existing websites server. After moving the copy of the website I am getting a 404 ...
0 votes
0 answers
17 views

When trying to access home page, Wordpress appends /wordpress to domain name which gives 404 error

When trying to access the home page, on https://www.andersonclassics.uk Wordpress appends /wordpress to the domain name as https://www.andersonclassics.uk/wordpress which gives a 404 error - there is ...
0 votes
1 answer
36 views

My wordpress website does not show 404 page and results in http 500 error

My wordpress website does not show 404 page and results in http 500 error when I search a particular query and the results are not available. For any page if the results are not available, it shows ...
1 vote
0 answers
27 views

Why I get File Not Found (404 error) when the file is actual there?

The directory at my website (ConcoursBuilder.us) looks like this in Filezilla: Per SiteGround conventions, non-WordPress files must be uploaded to manual-uploads under a separate public_html ...
  • 111
0 votes
0 answers
15 views

wordpress sitemap subtypes returns 404 with correct data for pages bigger than 1

website is using default WP sitemap packages /** * Sitemaps: WP_Sitemaps class * * This is the main class integrating all other classes. * * @package WordPress * @subpackage Sitemaps * @since 5....
0 votes
0 answers
20 views

How to hide the file name of 404.php in URL?

I'm using a custom bootstrap theme, but when I'm accessing a page that doesn't have it will direct to the 404 page, but it also displays the file name how can get rid of the 404.php file name? https://...
0 votes
0 answers
19 views

why I get a lot of 404 not found links via Google search console and how to fix them?

I get a lot of 404 not found errors, via crawl stats inside Google Search Console. My website was hacked about 3 months ago! Is there a possibility that being hacked is the reason that I get these 404 ...
  • 1
1 vote
0 answers
69 views

Wordpress shows front page, when it should show 404 with pagination style urls

Whenever I type a url for my site that contains three slashes "/" wordpress shows the front page instead of a 404.For example: example.com/something/does/notexist goes to frontpage, where ...
0 votes
0 answers
37 views

pagination 404 error, same slug home and categories

I would like to change the permalink for categories. I configured thé prefix of categories with actions I have a page for the home page wich have a slug actions All the website worked correctly. URL ...
0 votes
0 answers
22 views

Why am I getting Intermittent 404 pages on a sub domain with WordPress?

I am getting intermittent 404 errors in WordPress pages. It's happening in both the admin section, as well as on the front end. It's hosted on a Plesk server. Nothing is showing in the server logs. ...
0 votes
0 answers
34 views

404 error when I tried to use author slug in url

basically, I created a custom physical page called (page-team.php) after that I created a page from the dashboard called team and assign a template to the physical page that I mention before. I tried ...
0 votes
0 answers
23 views

Wordpress finding posts on 404 page

I'm struggling with a strange issue on my WP : when I'm on a 404 page, the wp loop is finding posts, but it's not supposed find posts on the 404 page. How I know WP find posts ? Because I wrote ...
  • 111
2 votes
1 answer
144 views

Set a specific page as 404 - not found via my own plugin

I'm developing a plugin that create some pages and set a specific template for each of these pages. It creates a page in which it sets a template for 404 - not found, how can set this specifc page as ...
0 votes
2 answers
80 views

Console Browser says it cannot find a requested image that does not exist on my Website [closed]

I have a site that I am working on and I noticed that I get this error in my browser console: Failed to load resource: the server responded with a status of 404 () It was trying to load a image file ...
0 votes
1 answer
316 views

How do I redirect the browser to 404 page, if no posts are found in home page

I am listing posts on the homepage with pagination and if no posts are found on the home page. I want to redirect the page to 404 page and get 404 response code. For example, example.com/page/200 Page ...
  • 3
0 votes
0 answers
25 views

Using the get_template_part method within an mu-plugin not possible?

A while back, I had someone here help me craft a custom mu-plugin (aka: "must use" plugin) that was designed to specially handle 404 server responses. Here is that thread for context, ...
0 votes
1 answer
187 views

Page not found after migration to localhost. I already updated the sql links and the permalinks. Wp-admin page works perfectly

So basically whats in the title. I migrated the company website to my localhost to implement some changes. First I cloned the repository, then I created the database, and uploaded the sql file. ...
1 vote
0 answers
154 views

Help with Elementor Pagination CPT archive 404 problem

The pagination links in CPT archive created with Elementor Pro get a 404. I've spend a full day searching and trying everything I found on Google with search "CPT Elementor archive pagination 404&...
  • 11
1 vote
1 answer
38 views

AWS Wordpress Install - pages/posts 404 on restart until updating permalinks

I have launched a WordPress instance on AWS using elastic beanstalk. Every now and then AWS restarts my server and when it does all my pages/posts links switch to returning 404. I can fix this by ...
0 votes
2 answers
45 views

Problems with Page Not Found

I have a new WP website in stage (https://cpanel-511-syd.hostingww.com/~bcctovkp/) that I need help with the functioning of the site when you try to navigate to a page or file not defined within this ...
  • 115
-1 votes
1 answer
380 views

404 Not Found nginx on wp-admin

I have my own domain and I'm hosting the site on InfinityFree. So when typing http:// mysite.com/wp-admin it gives me 404 Not Found-nginx page. I have installed WordPress successfully and also added a ...
  • 1
0 votes
0 answers
57 views

How do i make WordPress return 404 instead of redirecting on misspelled page?

In a vanilla wordpress install, a misspelled page such as https://example.com/weclome leads to a 404 error, which is fine. However, once I set custom permalinks for posts such as https://example.com/...
  • 101
1 vote
0 answers
39 views

Created php page in wordpress - Error Page can not be reached

I want to create a folder within wordpress site at root and add a php page abc.php with simple code like <?php echo "Test php page." ?> But when I try to run this page like this ...
  • 11
1 vote
1 answer
235 views

Redirect a page id url but not the page slug

My client is asking me to force a 404 $wp_query->set_404(); if the URL is example.com/page_id=342 but DON't redirect if the URL is example.com/about even though they are the same page. I have to do ...
  • 173
1 vote
1 answer
145 views

404 on paginated blog pages

We are running WP 5.6 and Beaver Builder 2.4.1.3(Pro). It is a multisite installation and we are having issues on the main site. Our home page for the blog loads just fine: https://www.awana.org/blog ...
0 votes
1 answer
300 views

Can't Export Custom Post Types With Export Tool In A Custom Theme

I have a custom theme and when I try to export the posts for the custom post type called 'news' via Dashboard > Tools > 'News' > Download Export File (image attached) I get a 403 'Forbidden' ...
  • 858
1 vote
1 answer
446 views

Issue with htaccess redirection in WP Multisite

My site structure is main site example.com and two subfolders sites /es/ and /en/ example.com redirects => example.com/es/ and example.com/en/ is the English version. What is wrong? The following: ...
  • 23
0 votes
0 answers
53 views

Please Help me with this 404 error

Please Help i dont know how to fix this issue nor im eligible to understand the technichal terms. Just wanna know where to redirect these
  • 1
1 vote
0 answers
199 views

Wordpress multisite on IIS - can't open subpages

Our site developer built a new site for us on wpengine.com. They did a search and replace to fix the URL references before exporting the database and zipping it with the site files to send to us. I ...
  • 11
0 votes
1 answer
294 views

404 error on new pages but only for non logged in users?

So. Issue as title. Have researched lots but am near insanity! Have done all the 'Refresh permalink' thing Have edited .htaccess(*) and put generic rewrite code and refreshed permalinks again - the ...
  • 1

1
2 3 4 5
18