a 404 error occurs when the requested page cannot be found

learn more… | top users | synonyms (1)

1
vote
2answers
438 views

Is there a way to avoid 404 pages in Wordpress?

On my site, people can link to non-existing posts, which is fine because that's the whole structure on my site... The problem is that you get 404 errors, which is not good for SEO. Is there a way in ...
0
votes
0answers
229 views

“Preview Changes” giving 404

Post Preview works fine, but after a post has already been published and changing the content and "previewing changes" before updating it again, it gives a 404. I think I've found out why this is ...
0
votes
1answer
627 views

WordPress custom post type category pagination 404 Error

This problem is giving me a headache and I was wondering if anyone knew how to fix it. I have a custom post type called Review. Here is how it is defined: function codex_custom_init() { $args ...
0
votes
0answers
31 views

I keep getting 404 Error when I attempt to view blog in single view

I'm a newbie to Stack Exchange. Hoping to get some answers now and again and maybe help out as well. My question is, I have (2) blog posts, and for some reason the latest one gives me a 404 Error ...
0
votes
1answer
46 views

404 Page when emptying spam or deleting a plugin

I have recently had a website migrated by my host over to a new server within the same network. I have now noticed that within the WordPress dashboard, if I try and do any of the following... Empty ...
0
votes
1answer
42 views

If searched in a category show different 404 page

Is this possible? I have a searchform that searches for certain categories. If there is no post, it will show me a 404 page... Can I change this page to something else? If so, how do I do that?
0
votes
1answer
164 views

Submiting custom form give error 404

I have custom search form on category category.php list template with following code: <?php $searchresults = site_url('/?p=1365'); ?> <form class="search-slide" id="search-slide" ...
0
votes
1answer
559 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
194 views

A change in URL slug in database returns 404, how can I do auto-redirect?

I have a huge blog with over 10K posts and a lot of posts with some adult keywords in titles, urls, content and tags. I am trying to remove all adult ones with "search and replace" plugin. It works ...
0
votes
3answers
263 views

WordPress keep redirecting me to random URLs

When I go to my homepage, http://example.com, I sometimes get redirected to http://example.com/SXKSLW/ or some other random URL along that pattern that yields 404 page. I do not remember doing ...
0
votes
1answer
334 views

If post does not exist, do something

Is this possible? If so, how? I am linking to a non-existing post/page where I get a 404 error. I want to have it to get the url of the non-existing post and make it a link on my 404 page, but I ...
1
vote
1answer
607 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 ...
0
votes
0answers
63 views

first load of the page gives 404 error

I'm having problem loading the page first time on my browser. For example if I load the page from a link it gives me 404 error but when I refresh the page It works perfectly. Any ideas on how to ...
1
vote
1answer
96 views

custom post template file not shown, instead all the time 404.php

i'm completely confused, want to use my own template file for a custom post type and of course i read all about this here or in the Codex ...
1
vote
2answers
351 views

Preventing 404 error on empty date archive

On a date archive page when no posts exist (for that date) WordPress throws across to the 404 page. Is there a way to make WordPress continue to use the original archive instead of the 404. That way ...
0
votes
2answers
117 views

Get post title of faulty link on 404 error page

My users can link to things that don't exist on the page. That's something I chose because it is the best option for my concept. Anyway, what I want to do is this... Let's say I clicked on a link that ...
0
votes
0answers
136 views

Stop wordpress to redirecting home page if no page found

I don't want to redirect to home page when there is no page or wrong url. I have following in httaccess file # BEGIN WordPress RewriteRule ^sitemap.xml sitemap-%{SERVER_NAME}.xml [L] RewriteRule ...
1
vote
1answer
328 views

Incorrect url for sharing blog on linkedin [closed]

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
223 views

How to find out which function is causing a 404

So I am trying to upgrade a WordPress project and for one section I get the 404 instead of seeing a product page. I looked around and tried adding this to my functions.php add_action('wp_head', ...
0
votes
0answers
61 views

Wordpress gallery image link gives 404 when not logged in

I'm attempting to use the default Wordpress gallery (from the post editor 'Add Media' then 'Create Gallery'). When logged in as an admin and clicking an image in the gallery on the resulting blog ...
1
vote
1answer
120 views

Top Level pages in wordpress giving 404, but child pages working fine

Basically everything works fine except for the top level pages ( e.g. category, archives, single post, custom post type, etc...). I have 3 custom post types and 4 custom taxonomies (each custom ...
0
votes
0answers
33 views

homepage olderposts link showing page not found

I am using WordPress 3.5.1 version, now I had a problem with olderposts link present at bottom of homepage. it is ok with rest of the category pages. I am working on this problem since last two days, ...
0
votes
1answer
71 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
1answer
455 views

Template redirect template loaded, but the header 404

I've created a template redirect for a given url, ex.: test.com/test Test is page is not exists, i'm just checking the url from query_vars, if its match, i load the template with ...
0
votes
2answers
452 views

Show a special message for private page?

If I set a page to private, can I have it show a message instead of a 404 page for public users?
0
votes
1answer
88 views

Prevent WordPress from interpreting a subfolder?

How do I prevent WordPress from interpreting a subfolder? Right now WordPress is installed in the root folder (grassrootsmedia.net/) and I have several other subfolders like (/Clients) that should ...
1
vote
0answers
36 views

Catch 404 errors in nested installations

I have a site at the root of my /http/ folder (I'm using Apache). In a subfolder, I have another WP site. When a 404 is encountered within the subsite, like this: ...
0
votes
1answer
199 views

Changing the post date without causing 404 error

We have permalink structure based on date (like 'www.mysite/2012/05/27/postname'). Some times there are some posts that we need to be shown the first, so we change they date. The problem is, that by ...
0
votes
0answers
47 views

Wordpress shows 404 on pages 11 and above?

Recently I noticed that every page on post list above 10 shows 404 error. My site is http://skuvajme.com/, hosted on site5 and I'm using modified "Magazine Basic" theme. http://skuvajme.com/page/10 ...
0
votes
1answer
139 views

how to set up wp in folder within static website?

In my server I have the following file structure: www/ index.html js/.. css/.. img/.. index.html ... blog/ .htaccess index.php wordpress/ .htaccess wp-config.php ...
1
vote
1answer
108 views

Post preview gives 404 when permalinks are purely date based

I have an issue pertaining specifically to the situation in which permalinks are set to be based only on publication date. My permalink structure is as follows: /%year%%monthnum%%day%/ When I try to ...
0
votes
1answer
468 views

Video uploaded with the native media uploader gives Error 404

I created a shortcode to make an HTML5 player insert into my post, but my problem is when I attempt to view a video that I've uploaded with the native Media Uploader, I get a file not found error. The ...
1
vote
1answer
2k views

How to get permalinks with category base working with sub-categories

I ran into an issue with a site that needs the category base also included in the custom permalink structure. I know this is an issue and I have read many posts like this that gave me some insight... ...
2
votes
1answer
212 views

Detect 404 before headers are sent

I've a piece of code that shows a banner the first time a user visits, then sets a cookie, which prevents it showing again. However, if the page has a 404 error, the 404 page of the requested ...
1
vote
1answer
75 views

get_search_link() redirects to 404 template page

I built a custom theme, and in it, there is a 404.php page and a search.php page. Elsewhere in the template, I wanted to link to the search page directly. So, I used the get_search_template() ...
0
votes
0answers
35 views

Posting to most pages throws 404

I have a problem with a Wordpress installation where POST requests to any page apart from a couple in the root fail with a 404. POSTing to wp-atom.php succeeds, but POSTing to another custom page in ...
0
votes
0answers
32 views

%page%/number didn't return 404 but redirect to /%page%/

I've got page, for eg. /about/ when after slash I put some numbers (not letters) I still get this same page. I really want 404 there. Why? What to do to avoid that? SEO itp...
0
votes
0answers
230 views

permalink and add_rewrite_rule - error 404

I'd like to have comments in a separate page with a dedicated template only for posts in a specific category (slug shops). Example: mysite.com/post-incatshops --> mysite.com/post-incatshops/comment ...
0
votes
0answers
3k views

Why 'Authorization Required' is coming on wordpress login

When i try to login to my WordPress blog admin why this pop up error come .. "Authorization Required" http://stpatrickscollege.edu.pk/wp-login.php
0
votes
0answers
67 views

404 with Custom Post Type

I'm having some issues here. Im trying to create a custom post type (acessorio) and some categories for it (acessorios_categories). So, what happens is that none of both works. Gives me 404 in both ...
0
votes
0answers
158 views

Display future single post 404 error

I have a custom post type kalender, a template which displays all of the posts in this custom post type and a single-kalender.php. Everything works fine when the user is logged in but when logged out ...
0
votes
1answer
95 views

Issue after changing permalink structure [duplicate]

My old permalink structure is like this: domain.com/POSTNAME/ My new permalink structure was switched to this: domain.com/CATEGORY/POSTNAME/ I need to set up a 301 redirect in htaccess that ...
1
vote
1answer
327 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 ...
4
votes
5answers
5k 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
1answer
47 views

Using calendar and page does not show calendar for next or previous year

I have created a page called mysite and have permalink as /XXX/wordpress/mysite ‎ On this page I am creating a calendar. The calendar is working little wierd. It is working for a current year but ...
0
votes
1answer
227 views

How to bypass 404 for certain pages/posts?

I have a site with urls like so: site.com/folder/page-name It is moving to another site built in wordpress and I am trying to recreate the page to ensure incoming links continue to work as normal. ...
0
votes
1answer
384 views

wp e-commerce single-product template giving 404

this page was working initially, and then I made some changes which *didn’t* appear, and then it just stopped showing that page altogether. I have tried deleting my wpsc-single_product.php and ...
0
votes
3answers
602 views

Error 404 on pagination on homepage

I have a blog Post home page with the following code in home.php: <div id="primary"> <div id="content" role="main"> <h2 class="page-title">Featured Products</h2> <?php ...
0
votes
1answer
227 views

Unwanted redirect in admin area

I have a strange behaviour on my backend. This is possible due to the way my WordPress is located. I installed it in a VirtualBox, using Ubuntu from the standard repository (i.e., apt-get install ...
0
votes
1answer
27 views

I get 404 when I try to login ever since I changed the permalink

This is the website This is what the login http://wayfaroutadventures.com/blog/wp-admin/&reauth=1">looks like now Basically here's what happened: I had www.mysite.com/blog as the permalink ...