a 404 error occurs when the requested page cannot be found

learn more… | top users | synonyms (1)

0
votes
2answers
238 views

404 Error On Custom Taxonomy Pages 2, 3, etc

I've been reading a bunch of posts about this with no luck so far. I can't seem to figure out what is the problem. I have the following: Custom Post Type: Sermons Custom Taxonomy: Series My urls ...
0
votes
1answer
24 views

Multiple 404.php templates based on a post_type

Is it possible to have different 404 templates based on the post_type? So when page is not found 404.php will be used, when post is not found 404-post.php will be used. Or alternative, I would like ...
1
vote
1answer
292 views

Serve apache 404 for missing assets rather then wp 404 template WP_Rewrites

I have a custom 404 page, but dont want serve it for every broken asset that may crop up. Instead I want to just serve the Apache 404 as its much faster. I've found the following htaccess rule that ...
0
votes
0answers
7 views

Random post slugs cut off from original and underscores not converted to hyphens

I am having a serious problem right now. Our business website just crashed and almost every single page has stopped working. I am in the process of restoring the backup right now but would like any ...
0
votes
0answers
14 views

404 page is not querying my custom post

I have a 404 template page which is, obviously, designed for Not Found Pages. Within the code, I have the get_header(); where I place the global code for the site. There is a div that contains a style ...
0
votes
0answers
11 views

How to Prevent Browsing to Extra Directories?

By "Extra Directories", I mean directories that exist for no apparent reason. For example, here is an article on css-tricks.com: http://css-tricks.com/favicon-quiz/ If I append (an extra ...
0
votes
0answers
24 views

lost password directs to another link and showing 404 error [closed]

Whenever i'm clicking on forgot password from front end it redirects to http://mysite.com/wp-login.php?action=lostpassword&redirect_to=http://mysite.com/post/ which gives 404 error. on the other ...
4
votes
3answers
609 views

Hierachical Custom post types permalinks not working

Been looking for someone with this same problem for hours now so I decided to post my own thread. I have a hierachical custom post type called contact-information. Using this I have parentpages ...
0
votes
1answer
467 views

Override private status - Enable users to read private posts

Hidden private posts for not logged in users The private posts are by default only visible when logged in. Override, show private posts for everyone Is there a clever way to override this? Make it ...
0
votes
1answer
58 views

Pages throwing 404 error on server load

I have a really strange problem. I have to fix a strange bug in a wordpress installation that is related to the server load. When the site receive more than 5 parallel request some pages starts to ...
0
votes
1answer
657 views

Some images not found 404 in localhost

I just transferred a WordPress installation from the domain to my localhost. I did all the usual steps: copy files, export DB and replace domain.com with localhost, update wp-config.php and refresh ...
0
votes
2answers
1k views

Why can I not view image attachment pages?

I have a problem with images. I can see my uploaded images, as previously, through the media library. I can access each image by clicking on "edit". But if I then click on "View Attachment Page", I ...
0
votes
0answers
16 views

Subpages return 404 server error

I just moved a site to another production environment and I have an issue with accessing subpages. The home page and the /wp-admin section works as expected and there are no path issues with images or ...
0
votes
1answer
21 views

Get the search element only on 404

I know get_sidebar( ); is used to get the widget sidebar , but how do I request one element from it? For instance, if I want to show the search or most read only? I know there is a way to specify ...
0
votes
1answer
18 views

Detect error 404 page to find out the issue

I have a wordpress website, which when I visit www.mywordpress.com/test/setup it throws an error 404 page. Which class in wordpress handles the request dispatching?
0
votes
0answers
33 views

Is this the best way to complete disable category archive pages?

I wanted to disable category archive pages because content in my blog will be presented via a number of pages for which I have custom templates like this: add_action('page_template', ...
0
votes
0answers
13 views

Some posts 404, htaccess wipes itself

So posts on my WordPress have started to 404, I have tried refreshing the permalinks. Have also disabled all plugins and changed theme. Categories section in the admin panel is also showing empty (but ...
0
votes
2answers
19 views

Custom post type single page returns 404 error

I have a custom post type called slide. It has content and some custom fields. I want WP to show the single.php theme or single-slide.php theme when the user clicks the slide single page link. the ...
0
votes
0answers
36 views

wp-admin/admin-ajax.php returns 404

www.mysite.com/wp-admin/admin-ajax.php returns error 404 when logged out. www.mysite.com/wp-admin/admin-ajax.php loads a blank page with 0 when LOGGED IN. This is the proper behavior as per ...
0
votes
1answer
21 views

wp-login.php ampersand in url results in 404

I've got this problem where the wordpress site will throw up a 404 if the wp-login.php has an ampersand appended after it (e.g. session expired argument). I've changed themes, disabled all plugins, ...
1
vote
1answer
274 views

Incorrect url for sharing blog on linkedin

I have a self-hosted Wordpress blog with Jetpack installed. My Wordpress URL structure is http://mydomain.com/archives/%postname%. Using the Jetpack's Publicize feature, I connected my blog to ...
0
votes
1answer
380 views

404 - Category pagination for custom post type

--Edit I've managed to narrow it down that the paged variable is not working properly here, (get_query_var('paged')) ? get_query_var('paged') : 1; is always returning 0 although maybe it is due to ...
0
votes
3answers
599 views

Password-protected Posts lead to 404 Error

I was just testing the password-protected posts functionality and when I submit the password it sends me to a 404 page. The password I typed in was correct, I made sure. The URL bar says: ...
-1
votes
0answers
31 views

page not found or 500 server error while posting

I'm getting Page Not Found or 500 Server not found errors when I publish my content or when i'm trying to add new post or gallery. But, if I refresh the page again it is working perfectly. please help ...
0
votes
1answer
24 views

Folder Name and Category Name Wordpress

I have URLs that need have the old URL for download files. Before, it has 2 separate website. The MAIN and the PORTAL website. http://www.website.org http://www.website.org/portal I want both ...
0
votes
0answers
10 views

Broken pagination on custom search query

I've been searching through various questions and answers for some time now, but can't figure it out. I should state that I'm still a novice when it comes to WP coding. The thing is, I'm using a ...
0
votes
0answers
19 views

Wordpress - 404 When creating Post/Page

I'm using the most recent version of WordPress and have encountered an issue that I've never seen before. Basically, when I try to publish a Page or a Post, WordPress directs me to a 404 page rather ...
2
votes
5answers
4k views

How to force a 404 on WordPress

I need to force a 404 on some posts based on conditions. I managed to do it ( although I don't know if I did it the right way) and I'm a getting my 404.php template to load as expected. My code: ...
0
votes
0answers
21 views

Why do my offline development site and online live site behave differently?

I have two versions of my site - one live, the other a development site using DeskTopServer. I work on the development site - adding / editing posts etc. and making changes to the WP database, and ...
0
votes
3answers
1k views

Show author archive pages for authors with no posts

I have one page for each author, but if the author doesn't have any posts I can't get its variables, because the loop is empty. The page returns empty, no avatar, no info and stuff, the whole site is ...
0
votes
1answer
266 views

Why does enabling Permalinks make pages not found?

I'm new to Wordpress and am creating a site using v3.9.1 of WordPress. When I create a new page, I can see it in edit mode, but the URL it is supposedly creating is not found when permalinks is used, ...
0
votes
0answers
15 views

Featured image loads correctly while gallery images returns 404

I can't get why the featured image is loading correctly while those in the gallery returns a 404 if the links is to the attachment page. If i link to the file, the file is shown but if activate the ...
0
votes
0answers
43 views

Multisite new sites not found(404), main site still works

I followed wordpress guide to install multisite. My main site (mydomain.com) works well, my multisite is based on subdirectory i.e., (mydomain.com/test/), however it doesn't load at all (404 error). ...
0
votes
1answer
20 views

404 Admin Error

I am new to WordPress and was looking at settings in the admin. I believe I changed the directory of the site from example.com/wp/ to example.com. When I saved the changes I immediately saw a 404 ...
0
votes
1answer
47 views

404 Page Not Found for Only One Post

I have 40+ posts on my blog. Only one of them is going to a 404 page when I click the title (visit the permalink). To see it in action: http://thegrovestead.com/tag/strawberries/ Look for the post ...
0
votes
0answers
38 views

Shortlink in header points to 404, but actual page does not

I've inherited a website whose permalinks are 200 and open fine: http://www.example.com/test-1 While looking at the source, the shortlink specified in the link tag points to 404s: <link ...
-2
votes
2answers
2k views

Pagination on category pages using wp_pagenavi causes 404 errors

Pagination for a custom post type in category.php returns a 404 page for /page/2. If I go to /page/1 it redirects and works fine, but /page/2 breaks. Permalinks are set to /%postname%/ I've tried ...
8
votes
7answers
17k views

Cannot access non-wordpress subdirectories as wordpress overrides them with a 404 error

I refer to this question previously asked and not suitably answered: Wordpress overriding actual subdirectories and also Non "Wordpress" pages/code getting 404 error. I have the same ...
11
votes
2answers
655 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 ...
1
vote
1answer
48 views

Nginx with Wordpress not showing template 404 for certain file types

I am using Nginx on Ubuntu to host a Wordpress site and everything is working great except certain file types return the Nginx 404 rather than the Wordpress template 404. For example: ...
0
votes
2answers
58 views

Pages displays correctly but returning a 404 error in http header.

I decided to delete a custom post type and change them to pages instead. The pages display properly but anything in the directory that the custom post type used is returning a 404 even though the ...
0
votes
1answer
68 views

404 error on second page load for child-pages

I have a strange problem which I really do not understand: My site has the page community and a sub-page called test. Permalink structure is set to /%postname%/ So the URLs for the pages are: ...
0
votes
2answers
54 views

WordPress “Hide WP” Gives Me Error After Admin Login [closed]

I recently paid a freelancer to install a "hide WP" effect, which hides the fact that I am using WordPress. I specifically asked to install something with this effect: ...
4
votes
1answer
157 views

Making %author% the rewrite slug for custom post type causes 404s on non CPTs

This has been driving me absolutely mad. I created a custom post type which I plan to use to create pretty affiliate/redirect links throughout my site. Here is my register_post_type(): ...
0
votes
2answers
4k views

Permalinks on post is working, on pages 404 error

I am having troublle with setting my permalink in wordpress site. I changed the permalink from default to custome : %postname%. In this case my posts are working perfectly, but the pages are not. ...
0
votes
1answer
77 views

Pagination 404s on custom query

The basic issue is that every paginated page for my blog is going to a 404 page. /page/2/, /page/3/, etc. It used to be working fine, but is not now. I think maybe the change to 3.9 did it. Here are ...
0
votes
0answers
19 views

add_rewrite_rule is not fired

I need to rewrite some urls: I have a page (id = 61), with slug anunciantes on wich I use a custom template to generate a wp_query to list a custom post_type. I need to be able to filter by two ...
0
votes
1answer
56 views

Although rewrite engine is on, I get 404 not found on every page

My wordpress blog has encountered this issue about a week ago. Before that nothing was wrong with it. I got suspicious on web host provider, but they said many times that rewrite engine is on and it ...
3
votes
2answers
2k views

Including category-base in a post permalink results in 404

I have static front-page and separate page /news/ as the Posts page. I would like to have the single-post URLs like this: www.example.com/news/categoryname/subcategory/postname/ and for the ...
0
votes
2answers
397 views

How to use if($wp_query->query_vars['name'] == 'pagethatdontexist') without getting a 404? How to suppress 404

i want to do something if my url is /pagethatdontexist But I dont want wp sending 404 headers. I tried this: add_action('wp', array($this,'awp')); function awp(){ global $wp_query ; ...