a 404 error occurs when the requested page cannot be found

learn more… | top users | synonyms (1)

2
votes
1answer
147 views

How do I bypass Wordpress 404 handling?

How do I skip Wordpress altogether if there's a 404? I've tried adding an ErrorDocument to the .htaccess with no joy. The reason I'm asking is that we use a lot of custom fields and as such our site ...
0
votes
1answer
64 views

Exclude from wp_list_pages by template

I have a series of "Thank You" pages which result from different form submissions. I would like to be able to exclude these from sitemaps based on their template. Specifically, and as an easy example, ...
0
votes
0answers
143 views

Custom post type archive pagination 404

EDIT. I found the culprit causing my issue. I had the following code to change the pagination slug to "sida" to reflect the site language. It works well for blog posts, but it does not work for custom ...
0
votes
0answers
17 views

Access not existing source show 500 Error while not showing 404.php page

When I want to access none existing source, it can not show a 404.php,it show error 500, eg http://www.xxxx.com/nothing But only work under http://www.xxxx.com/index.php/nothing How to fix it?
0
votes
0answers
74 views

404 on term taxonomy archive pagination only with some terms

On my site I've created a CPT with a hierarchical custom taxonomy. Here the code: **CPT Args** $args = [ 'labels' => $labels, 'public' => true, ...
0
votes
0answers
35 views

Update Permalink Settings - from Day and name to Custom Structure - now have 404s

I've just updated Permalink Settings from Day and name to a Custom Structure of /%category%/%year%/%monthnum%/%postname%/ but now certain links give me 404s. It turns out that the links causing ...
0
votes
0answers
24 views

weird redirect from Movable Type installation

I'm helping a friend moving his blog from MT to wordpress, in order to do so I have created a truth table on the database (rosetta) by looking at all the old static files and I've created a relation ...
2
votes
4answers
833 views

Changing Site Address (URL) causes 404

Thank you in advance for any help you might provide. I have read many other posts, and unfortunately the provided solutions did not work. The problem is this: I have Wordpress installed in a ...
0
votes
0answers
95 views

404 - pagination WP_query custom post type in page 2 or nextpage

I got 404 page when I click to page 2 or next page. I try used pre_get_post anyway, but 404 page is there. Any answer is welcome, thanks a lot. I've tried many ways, and search ... In my query ...
1
vote
0answers
76 views

New nav_item created with bp_core_new_nav_item() results in 404

I was reading many posts which are about creating new nav item to buddypress profile. i cannot find anything that i miss in my code. The item appears on the profile-page as i want it, but when i click ...
0
votes
1answer
92 views

Force 404 redirect to home?

normally with a 404 error the site will be redirected to theme/404.php. I'd like to the home page instead. I tried ErrorDocument 404 http://www.example.com but it doesn't work. How can I solve ...
0
votes
1answer
51 views

Permalinks keep reverting to 404 unless I re-save them

I'm running the latest (and constantly updated) version of WordPress on Nginx. Every now and then I wake up to a site full of 404 errors. The fix is to go into the permalinks and just save the ...
0
votes
1answer
41 views

Direct form to a custom page template

I have the following form in a Wordpress page : <form action="dbsearch.php" method="POST"> <input name="input" type="text"> <select name="search4" size="1"> <option ...
0
votes
2answers
396 views

Blur.js with WordPress - Enqueued, but server not finding file

So as the title suggests, I'm trying to run blur.js on my WordPress theme. I have enqueued the script in functions.php: function load_oves_methods(){ wp_enqueue_script( 'blur', ...
0
votes
2answers
2k views

How to resolve 404 errors for wordpress comments/feed when I have disabled comments

I have disabled comments in my wordpress site. So comments/feed url is giving 404 error. So how should I resolve these errors? doaminname/feed works fine. But domainname/comments/feed is giving error. ...
0
votes
3answers
2k views

Wordpress “Page not found error” when I edit a page

On a Wordpress based website, when I add text using wordpress visual editor or HTML source to a particular page - it gives "page not found error". I tried by adding some other text and its working ...
0
votes
2answers
508 views

Permalink Problems

I am having a problem. I am running WP 3.05 with one custom taxonomy. Here is the code to create the taxonomy: function create_property_taxonomies() { // Add new taxonomy, make it hierarchical ...
0
votes
1answer
30 views

Multisite 404 page

I've recently installed Multisite using sub directories and I was wondering if it was possible for the sub directory sites to have their own 404 page? Currently, any links coming in to the sub ...
0
votes
0answers
151 views

Archive pagination causing 404 with permalinks structure

Somehow my archive.php is causing some problems because I'm using /%category%/%postname%/ as my permalink structure. The next_posts_link() redirects to /category/page/2: which causes an 404 error. ...
4
votes
2answers
9k views

Display search results within the same page

Problem I have a page on my site where I need to do additional searching within that page. I am using the default way of WordPress searching with <?php get_search_form(); ?> for my main header ...
0
votes
1answer
140 views

Wordpress pagination not working because of subcategory

Currently I'm facing a really strange problem I can't seem to fix normally. I've using pagination on my category pages. I've got a 'News' category with some sub categories. One sub category is 'MVO ...
0
votes
0answers
31 views

404 after hosting migration

I have recently changed hosting of my WordPress site: katartika.com. I have moved all of my files and imported the database, but the website is returning an Apache Server 404 not found error on any ...
2
votes
2answers
922 views

Custom rewrite rule serves content, but returns 404 error code

I have a plugin that sets up a custom rewrite rule. I can access the short URL and the content is returned correctly, but the HTTP response is 404, Page not found. From searching the web it seems ...
3
votes
2answers
813 views

Custom permalink structure leads to be 404 on pagination

I have a permalink issue. For your information, there are a few different categories within a website and there are many posts in a single category. My permalink setting is: Custom Stucture: ...
0
votes
0answers
118 views

Disable redirect from non-existing URLs to existing

There is an existing page with this URL (let's say it's page ONE): http://example.com/diawe-wier/ If I'm opening URLs like: http://example.com/diawe%20wier/ http://example.com/diawe-wier-/ ...
10
votes
1answer
638 views

Why is the loop not empty on some 404s?

I came across a weird issue. Say you access a random url, three or more levels deep: http://example.com/a/b/c http://example.com/a/b/c/d ... Then is_404() is true. So far so good. But for some ...
2
votes
1answer
4k views

404 when fetching image from wp-content/uploads/

I get 404 status when fetching images, and the http still contains that image. Image shows up in a browser, but the 404 code breaks some applications. calls to wp-content/uploads/ are redirected in ...
0
votes
0answers
115 views

How to get wp_redirect to work correctly

I have a new site that has had a permalink structure update. Old Structure: http://blog.mysite.com/%postname% New Structure: http://blog.mysite.com/%category%/%postname% My thought process was to ...
0
votes
1answer
67 views

Taxonomy link not working (leads to 404 page)

I've created a website where I use Taxonomies for adding an extra category future. This feature works in the backend (admin) and is showing up correctly under the article. The problem is that the link ...
0
votes
2answers
196 views

How to solve this custom post type goes to 404 page?

I have a custom post type called dramas /******* DRAMAS BEGIN *****************************************/ register_post_type('dramas', array( 'label' => 'Dramas', 'show_ui' => true, ...
0
votes
1answer
62 views

Cannot Override Wordpress 404 for a Sub-Directory

I have wordpress installed on my root (/var/www/html) and I have a sub-directory in the root as /var/www/html/manage Both directories have it's own .htaccess files. Content of the .htaccess are as ...
2
votes
1answer
37 views

Feed 404 Errors

Before you say this has been dealt with before, please read the whole issue. I have Google'ed and Stackoverflowed myself to death on this. In WMT I see 404 errors for /feed on specific posts. e.g. ...
0
votes
1answer
97 views

404 redirect based on url

I have a link like this: https://www.example.com/bh-job/38/?title=digital-marketing-intelligence-expert When I surf to the page I'm redirected 404 page because the page doesn't exisit. The page ...
0
votes
0answers
13 views

Cannot use pages created on WP

I am quite new to WP and I have recently taken over a development project of a page that I really don't understand quite well due to the weird options that the previous developer took. Unfortunately I ...
0
votes
0answers
38 views

Register new post type in plugin (multisite)

I'm currently trying to create a custom post type inside my plugin. Everything works fine in the back-end but when I try to view the post in the front-end then either it redirects me to the homepage ...
15
votes
2answers
8k views

How to create custom 401, 403 and 500 error pages?

When a 404 error is encountered, a 404.php template file can be used to render a custom error message. This is documented in the Template Hierarchy article. My aim is to create custom error pages ...
0
votes
1answer
116 views

is_404() - where does this get set?

Where does is_404() get set? Looking at the source in query.php: function is_404() { global $wp_query; if ( ! isset( $wp_query ) ) { _doing_it_wrong( __FUNCTION__, __( 'Conditional ...
0
votes
0answers
32 views

show 404 page for url which contains unexisting post id

I created custom urls rewrite example : domain.com/post_id/image/image_name/ with rewrite rule it shows likes this : Domain.com/125/image/my-car-image/ it work fine but i want to show 404 not ...
1
vote
0answers
125 views

Getting a 404 when trying to load /wp-admin/plugin-install.php

I am not sure why, but the backend of my site is running slow... even though it's running slow, all pages still load, except this one /wp-admin/plugin-install.php (the add new plugin page). I checked ...
0
votes
0answers
36 views

Give 404 error on links and on forums links

I am working on the site where except home page every other page gives error on links (Not for default).I installed the bbpress and its generates links like this ...
0
votes
0answers
26 views

How to show a page when no post found?

How do I show a page when no post is found? Something like this: if (NO_PAGE_FOUND) { customData = getCustomDataFromDB(); if (customData === null) { // GO TO NOT FOUND 404 ERROR PAGE ...
0
votes
1answer
136 views

404 error on all pages but homepage

I have a local install of wordpress home page is accessible at http://localhost/activlist Backend is accessible at http://localhost/activlist/wp-admin etc No other front end urls are accessible, ...
1
vote
0answers
140 views

Permalinks 404 error with HTTPS host

My new permalinks continue displaying a 404 error on my site even after adding the AllowOverride and Rewrite modules parameters. Here is my default-ssl.conf file : <IfModule mod_ssl.c> ...
1
vote
1answer
246 views

$error = 404 after caught add_rewrite_rule

I have a rewrite rule as this to caught old urls from a previous version of the site: add_rewrite_rule( '(ninos|familia|hogar|mujeres|hombres)-[a-z-]+\.php', 'old_id_redirect.php', 'top' ); The ...
0
votes
0answers
164 views

Saving Post redirects to 404 page when php $_GET variable in post body

I am having a very annoying issue where certain posts redirect to 404 page when trying to save or publish a post. It only happens to a few posts and did not happen prior to the last few WP updates. I ...
0
votes
2answers
336 views

WP Page Navi. 404 error when using posts per page parameter [duplicate]

I'm trying to fix an error with pagination of WP page Navi plugin. After I've added posts_per_page parameter to the query I'm getting 404 error when clicking on link page3,4 etc (there are 10 records ...
0
votes
2answers
31 views

Custom 404 error does not always appear

I recently created a website at www.volatileinterface.com, using WordPress. I am using the cyanotype theme and I wanted to create a custom 404 error page for when a webpage could not be found. I ...
1
vote
0answers
118 views

Attachment page gives 404 if user not logged

I am struggling on a very weird behaviour for a WP site I have developed. My client have uploaded many photos to the media library, and tags them with some custom taxonomies I have defined. Some of ...
0
votes
2answers
25 views

Permalinks stopped working - NO update, mod_rewrite enabled, .htaccess not touched

At first, my permalinks and all worked. My permalinks were in /year/month/post/ format. Today I found out when I try to open an Anspress question, I get a 404. (that worked too, last time I checked) ...
1
vote
1answer
1k views

WordPress Post - On Post - 404 Page Not Found

I was helping a friend with a website. Every thing seem to work fine. I set up some demo content manually. But today some thing wired happened. When we try to do a post it returns to a 404 not found ...