Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

0
votes
0answers
11 views

Assign Parent Page - Now 404 Error

The strangest thing is happening. I have a page that I want to assign a parent page to. When I assign a specific parent page to it, then the page shows a 404 error. Here is the weird thing, this ...
0
votes
1answer
15 views

Page 404 Error on Localhost

I am currently working on my localhost and the problem is that all the wordpress related urls would direct me to error 404 page not found but somehow i can still access my website which still ...
0
votes
0answers
15 views

All Post Wordpress Page Error

I set up the number of elements per page in the Wordpress "Post" page in 999 (max) because i have more than 4k post but since i did that every time I want to go to the page and see my post i'm ...
0
votes
1answer
19 views

Dynamic 404 page content while still keeping 404 status code?

I used Divi to build the layout for a custom 404 page. I'm using this plugin https://wordpress.org/plugins/redirect-404-error-page-to-homepage-or-custom-page/ to redirect 404 errors to this page. It ...
0
votes
1answer
14 views

Unable to declare AOS library in functions

Greeting WP Devs, I am planning to transfer the script libraries in my function.php . In my function.php I registered AOS function mypage() { if ( is_page( 'mypage' ) ) { wp_register_script( '...
0
votes
0answers
23 views

Issues forcing trailing slash via htaccess for Bitnami Wordpress

The Problem: https://www.domain.com/journal/category/camping/ loads fine. https://www.domain.com/journal/category/camping results in a 404 error. (Location header strips out /journal/ and redirects ...
0
votes
0answers
36 views

Permalink structure custom-taxonomy-slug/cpt-slug breaks ability to have subpages and pagination (404 error)

I took over a WordPress project from another programmer, who wrote code to create the permalink structure "custom-taxonomy-slug/cpt-slug", the custom taxonomy is "city", the cpt is "restaurant", so ...
0
votes
2answers
11 views

How to convert multisite subdomain from http to https

I have created a WordPress multisite on the primary domain alaksns.com which is secure with ssl certificate. Then I added a new site as blog.alaksns.com which only works when accessed with http ...
0
votes
0answers
37 views

add_rewrite_rule() returns 404 page

I'm using add_rewrite_rule function to add this rule: function custom_rewrite_rules() { add_rewrite_rule( 'category/books/crime', 'category/books/?filter_category=crime', ...
1
vote
0answers
24 views

permalink structure postname and wp internal routing (301 vs 404) [duplicate]

I don't understand the following behavior: to verify, I have a fresh default/standard wp installation (no themes, no plugins) I change in settings the permalink structure to "post name". I create ...
0
votes
1answer
17 views

wp-admin throws 404 when accessed from some IPs

When I am trying to access wp-admin I am getting a 404 page for some specific internet connections on some days. I have tried deactivating Jetpack, that did not solve the issue. Except for Jetpack I ...
0
votes
0answers
15 views

I'm Facing unnatural 404 error: The requested URL /readme.html was not found on this server

All files are working for a moment but when I refresh or head over to other pages site facing 404 error. But when I refresh it for 3-4 times then it works fine as natural. For eg: if you head over to ...
0
votes
0answers
23 views

PageNavi redirects to 404 when used as archive page

I'm using a page as archive for a custom post type called event. register_post_type('event', array( 'labels' => array( 'name' => 'Événements', 'singular_name' => '...
0
votes
1answer
37 views

wp-login not found - All usual solutions not working

A new client of me can't login to his old(er) Wordpress website: wp-login gives a 404 error and wp-admin gives a 500 error. Here are the links (client agreed to share these): https://...
2
votes
2answers
34 views

HTAccess stops me from accessing WordPress Dashboard links

I have a WP site which I have not looked at for a while. I have just logged in to update aspects of it, including WP itself, now on 5.0.2. Now if I click on any of the Dashboard links - Posts, ...
0
votes
0answers
14 views

WP url showing as _trashed can not find or delete

I have two "About" pages showing through a google search for my site, one works as it should and the other comes up as 404 page not found. The url shows as: http://www.larascarr.com/about__trashed/...
0
votes
1answer
28 views

404 on CSS and JS only on Homepage

I had to use a backup of the website and on restoration the Homepage has 404's to all JS/CSS files Every other page is accessible and does not experience the issue I've checked the permalinks, I've ...
0
votes
2answers
133 views

404 Not found error after update to WordPress 5.0

I have a WordPress website which was working good before WordPress 5.0. after update to WordPress 5.0 I get an 404 error on loading resources. style.min-rtl.css:1 Failed to load resource: the server ...
0
votes
0answers
32 views

Sometimes I am still getting 404 error if I call add_rewrite_endpoint & flush_rewrite_rules on activation / deactivation hook

I need to add a custom tab to my woocommerce my account page, so I followed this article: https://github.com/woocommerce/woocommerce/wiki/Customising-account-page-tabs#creating-new-endpoints /** * ...
0
votes
1answer
20 views

How to set up permalink after migrating to another server?

After i migrate from one server to another, i can only set the permalink to plain setting. Whenever i try to change to other custom setting, it doesn’t work. I always see the “ERROR 404 – PAGE NOT ...
0
votes
0answers
9 views

Indexed default page Google

I have this url https://inka-yume.pe in Wordpress, when you search it on Google the page appears like https://inka-yume.pe/wordpress/ and if you enter into it, is showed the 404 error. This is the ...
0
votes
1answer
29 views

404 on internal pages, in all sites in my local server

I have a local Apache server, with module rewrite loaded, all my Wordpress files in this server fail to find internal pages whenever permalinks options are set to something different than simple. ...
-1
votes
2answers
124 views

Theme making direct ajax calls to theme folder

So, I'm using a wordpress theme (unfortunately, I'm not able to get support for the theme any longer), and it has a contact form that makes a direct ajax call to a php file in the theme's "includes" ...
0
votes
0answers
17 views

Returning 404 in case of /?p=randomstring

Wordpress at the moment return a random page when visiting, for example, https://www.examplewebsite.com/?p=bdmvxmqa How can I force it to return a 404?
0
votes
1answer
30 views

Custom permalink gives 404 error only in some pages

Some pages of my Wordpress don't work after creating a custom permalink for products URL in my localhost environment. Home page works, but for example /contact page returns 404. If I look at Apache ...
0
votes
0answers
27 views

Check if URI exists or creates 404 error

I have the following problem: I would like to check in PHP, if a certain wordpress URL exists or if it returns a 404 error. Having tested get_page_by_path() I had to notice that this does NOT work ...
0
votes
1answer
49 views

Some one is trying to hack my website, Need guidance [closed]

There are multiple IPs that are trying to access my directories. I am using iThemes Security plugin and it shows the following lists. These are the files all of the IPs are trying to access every ...
0
votes
2answers
27 views

I used single quote to design HTML of my WordPress blog. Now site redirects to index.php everytime than page.php or single.php

I am actually building a custom theme for my blog and I use single quotes for HTML everywhere like: <div class='div'></div> Does this cause me redirection to index.php?? My site ...
0
votes
1answer
31 views

Custom post type slug 404

I have created a custom post type public function register_post_types() { $args = array( 'labels' => array( 'name' => 'Android Apps', 'singular_name' => '...
1
vote
2answers
127 views

Getting a 404 error when clicking edit page

The problem I've run into is the WordPress for my website yesterday randomly stopped allowing us to edit any of the pages. Every time you click to edit a page it comes up with a 404 error. Things I ...
0
votes
1answer
24 views

Wordpress website dont load CSS, JS and images

I have a basic website with the Betheme installed as theme with the plug-ins: Yoast SEO WPBakery Page Builder Ultimate Addons for Visual Composer Slider Revolution Site Reviews Really Simple SSL ...
0
votes
0answers
18 views

Why my post showing not found in admin side when i click on count of category?

i am building new theme in wordpresss and i posted some post inside my post with specific categories and when i click on count of category to see how many posts are of this category but every time i ...
-1
votes
1answer
37 views

%20 in URL in archive page shows error 404 on page [closed]

I have made a custom archive page, so the page is working for single words like - National Category. For this the archive page works as it should be but when it comes to two words like - Economy and ...
0
votes
1answer
106 views

Removing CPT slug from URL results in 404 error for archive page

I have created a CPT with rewrite rules as follows: "rewrite" => array( "slug" => "/", "with_front" => false ), In the functions.php, I have added the following code: function ...
0
votes
1answer
49 views

Archive URL returns 404 error for Custom Post Type

Having issues with a custom post type that returns a 404 error when I visit the archive page. get_post_type_archive_link() for the post type (called project_profiles) returns the URL mysite.com/...
0
votes
0answers
27 views

add_rewrite_rule returns 404 in parameter validation

Suppose I want to create a new rewrite rule like the following: add_action('init', 'fffl_router_add_rewrite_rules'); function fffl_router_add_rewrite_rules() { add_rewrite_rule('books/([^/]+)/?$',...
1
vote
0answers
31 views

Wordpress category with 404 error

Okay, so I'm facing a weird problem as I'm receiving 404 errors on blog category pages and I already did the most popular tricks to solve it, such as: re-install Wordpress update permalinks update ....
0
votes
0answers
29 views

Why is there a 404 on page 2+ for my search page?

I've overridden the search.php template from within a plugin, and I've replaced the global $wp_query with a different one, and without any paging parameters it works fine. Once I add a /page/2/ on ...
0
votes
0answers
16 views

page/2 returns 404 in authors.php

I have a wordpress website. I have two user roles. one is "author" and another is "team_member(which is created using user role editor plugin)". Now pagination is working fine for role("authors") but ...
0
votes
0answers
21 views

Published page but it is page not found

I have published page with post type abc, but the page is not found. If I keep post type, then it works fine. I insert post data and publish through query: add_action( 'init', 'my_cpt_init' ); ...
0
votes
0answers
235 views

Woocommerce product page 404 not found

I don't know what else to try to fix this, i am working on localhost with laragon and i get 404 not found when i go to product link, the url is the same as permalink which i have /%postname%/ and ...
0
votes
1answer
28 views

“Headers already sent” error triggered in “parse_query” action

I have this code registered to the "parse_query" action which attempts to trigger a 404 based on the availability of an API asset. My implementation is based on this answer to another question. ...
1
vote
0answers
31 views

Custom post URL 404 error

I have custom post type and custom taxonomy. Categories works well but posts give me 404. I dont know why. It worked before I define URL for hiearchical categories. Can anybody help me? Main fragments ...
1
vote
0answers
175 views

Getting “404 page not found” error when i access to my Login page

I am getting the 404 error when I enter wp-admin after my domain.I am using infinity free hosting and getting this page https://infinityfree.net/errors/404/ when I access my WordPress login page. Can ...
0
votes
1answer
28 views

Wordpress 404 errors for old plugin files via Google Bot

I get a lot of 404 errors on my WordPress site and I have controlled a lot of those using the Redirection plugin. Now there is a particular type of 404s that originate from Googlebot requests. These ...
0
votes
2answers
230 views

Migrated site - Images have 404 error

I migrated my site from localhost (LAMP) to Namecheap and it is broken in that the images it is supposed to load from /wp-content return a 404 error. I can login to wp-admin and I can see the pages ...
0
votes
0answers
16 views

404 after deactivating plugin when troubleshooting “access denied”

I was initially seeing "access denied" when trying to access my domain. Couldn't view the website OR Wordpress admin. To troubleshoot, I manually deactivated all plugins by renaming the directory in ...
0
votes
0answers
20 views

Param causing 404

I just moved over from blogger and which added ?m=1 and ?m=0 params on a lot of urls, and they are currently saved on a lot of social media, bookmarks, etc. All requests coming in with m=x in the ...
1
vote
1answer
29 views

How to display content from the main blog on another from multisite network as it would be its own

All solutions for the questions I've seen is just about loading links to posts with a blog switching feature, but I need to show the post from my main blog on sub-blog under the requested URI on my ...
0
votes
1answer
85 views

Taxonomy term page going to 404

Why are my hits for a taxonomy term page getting a 404 error? I have taxonomy "source', registered in code through a plugin... <?php /** * Plugin Name: Context Taxonomy for Sources * ...