a 404 error occurs when the requested page cannot be found
1
vote
3answers
71 views
How can I send an email in my plugin?
I'm making a plugin that emails the site webmaster when I go to the 404 page. The script checks if the referring link is on our site, and then sends an email to the webmaster.
$message = "
...
0
votes
1answer
123 views
404 to 301 - Fixing old links
I have currently updated a site and made many improvements to it. The old site ran off 3 different systems and had wordpress (and the other systems) in the webroot. I have moved wordpress into a ...
0
votes
1answer
114 views
Clean install - Changing permalinks in twentyeleven give 404
interesting problem that I encountered, not sure if it's bug or not..
On a clean install using the twentyeleven theme I try changing the Permalink Settings to something different from the Deffault ...
0
votes
1answer
71 views
404 on child page template
I have a page called portfolio and I have created several child pages for it like Video page, audio page etc …
I also created custom page template for portfolio and named its file ...
-1
votes
1answer
114 views
Parent pages not found with pretty permalinks
I'm building a site and for some reason all the parent pages are 404ing, only sub-level pages are displaying with pretty permalinks. If I use default permalinks, everything works fine.
I've tried ...
2
votes
1answer
63 views
In wordpress I am manipulation 404 response. I want to give the response before 404 error is given to google
May be the question in title is not explaining what exactly I want. So I will explain one logic and then ask what problem I am getting from that.
We are using wordpress. We have 2 categories ...
0
votes
1answer
644 views
page not found in IE, but found in Chrome & Firefox
I use .html on PAGES plugin, and this works fine for me in Chrome and Firefox.
However, Internet Explorer displays "page cannot be found".
Why would one browser not display a page, but two others ...
0
votes
0answers
16 views
URLs getting appended with strange number string, resulting into 404s [duplicate]
Possible Duplicate:
Massive 404 issue reported by Google Webmaster Tools on a WordPress Site
I've been dealing with large number of 404 errors reported in the Google Webmaster Tools. I ...
-1
votes
1answer
70 views
Why my htacess rewrite return 404?
Here is my .htaccess file
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^abc/products-(.+)$ def/products-$1 [R=301,L]
...
0
votes
1answer
334 views
Google 404 Errors
It seems Google Tries to crawl pages I never created and gets a 404 error, but it thinks or maybe somewhere in my code, google thinks there is a second page.
For example, I have this page
...
0
votes
1answer
199 views
using wp_redirect to redirect to a permalink
I'm using wp_redirect to change the URL of my 404 page:
function show_404($message = 'page not found'){
wp_redirect(home_url() . '/error/404?m=' . urlencode($message));
exit();
}
I have ...
0
votes
1answer
159 views
Setup proper 301 redirect for deleted tags
I recently deleted a large number of tags (~20k-25k) from one of the categories that publishes news items. These tags were contributed by our authors and added no value to the site. As a result, ...
0
votes
1answer
108 views
Testing for a shortcode using a function. 404 page throwing PHP Notice
I'm using the following function (can't remember where I found it, but I think it was written by pippin so thanks to him) to test for a shortcode.
function has_shortcode($shortcode = '') {
...
1
vote
0answers
197 views
403 thrown instead of 404 on iis [closed]
I am running a wordpress blog (3.4.1) on iis 7.5 with php manager 5.3.13.
I cannot configure correctly the 404 page. I have created a 404 page which can be successfully viewed through /404.php.
...
2
votes
1answer
275 views
Multisite custom post type's single page 404
I have two sites in my multisite setup - domain.tld (site A) and domain.tld/lifestyle (site B). This is my first multisite attempt.
I've made a widget that creates a custom post type "latest-news" ...
2
votes
2answers
760 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
0answers
243 views
Massive 404 issue reported by Google Webmaster Tools on a WordPress Site [closed]
I have a wordpress site which GWT reports hundreds of 404 errors, when trying to inspect the 'alleged' pages that output those dead links I find nothing.. There's something very particular in those ...
4
votes
3answers
805 views
External page integrated into WordPress returns a 404 error
I have a script that I'd like to call via AJAX from my WordPress theme, it relies upon some core WordPress functions so I am including WordPress blog header like so:
define( 'WP_USE_THEMES', false );
...
0
votes
1answer
560 views
The requested URL was not found on this server [closed]
I'm running wordpress locally on 127.0.0.1 on mac osx lion. All links work fine. Problem is when I add pages, and set permalinks to the page, and then associate the page with one of my template ...
0
votes
1answer
113 views
Permalinks not working (404) for the 'item' post type
I have searched various forums and blogs, however I could not find the isuse so far, neither a way to fix it.
item does not seem to be a wordpress-reserved word.
My custom post type registers just ...
1
vote
1answer
36 views
Defining a custom 404 for non-WordPress parts of site
I have a site with WordPress located in a directory under the root. The root directory contains the main files for the non-WordPress part of the site. Wordpress is included in all of these pages by ...
0
votes
1answer
67 views
All of the “more results” and navigation links lead to a 404 error
This is really starting to look like something that will never get fixed!
I've tried EVERYTHING I found on the internet and it doesn't work.
The navigations on the pages (more results, 1,2,3 etc.) ...
0
votes
1answer
61 views
old permalinks not found
Looking through Google Webmaster Tools, I have a lot of 404s for posts with permalink structure of /%year%/%month%/%day%/%postname%/
I have since changed permalinks to /%category%/%postname%.html
I ...
2
votes
1answer
478 views
Pagination gives 404 error
It's seems that this bug of WP never was solved by WP team.
I have custom post-type, my url structure is /%category%/%postname%/ And if i click on 2nd page i will get 404 error.
I tried everything i ...
5
votes
3answers
1k views
Are there any hooks that alter the 404 logic?
Provided you have a 404 page defined in your theme, Wordpress will display a 404 page if "tag" is defined in $wp_query->query_vars, and there are no posts matching that tag.
I'm writing a plugin that ...
0
votes
3answers
875 views
Wordpress multisite giving a 404 on all new pages created [closed]
I am using multisite on wordpress using subdomains on my local.
I had created a page for one of the sites [site1.local.loc] with the link [site1.local.loc/page1 ; I entered this in the page creation ...
0
votes
1answer
88 views
Custom taxonomy page returns 404
Ive created a custom post type and a custom taxonomy. I can create new posts and assign those taxonomies, but it returns a 404 when I go to mydomain.com/mycustomtaxonomy/termslug
Here is my code:
...
1
vote
1answer
358 views
make wordpress log errors in apache log file
I need to log 404 errors and wp-login failed attempts on wordpress site. Unfortunately it natively handles everything and doesn't write to apache log file.
I tried this:
404.php
<?php ...
0
votes
1answer
192 views
Safe to throw 404 error in request filter?
I am working on a plug-in for my personal site and I would like it have a certain permalink structure (/projects/project-type/sub-type/project). To achieve this, I am using the request filter.
Inside ...
0
votes
1answer
134 views
How to properly print a 404 error without redirecton? (i.e. keeping the current URL)
There are some pages on my BuddyPress install that I would like to hide by printing a 404 error.
With the help of the following question: Redirect Restricted Page to 404
I came up with this code:
...
0
votes
1answer
525 views
404 error after publishing a post
My issue is prety much what the title indicates. Whenever I publish a new post, everything works fine - the post is listed in my WP dashboard and all looks good. However, if I try to 'view post' to ...
1
vote
2answers
186 views
Using /wp-admin works, using /login gives a 404. Why?
I just did a manual install and tried to login, but was unable to do so using domain.com/login. I got a 404 error. When I used domain.com/wp-admin, no issues. Did I do something wrong or forget to do ...
1
vote
1answer
188 views
Moving local wordpress page to a real server subdomain broke my permalinks?
I developed a site locally with /%postname%/ permalink structure. I did some sample posts locally and wanted to move this entire local setup to a temporary subdomain like http://review.clientsite.com. ...
-2
votes
2answers
256 views
Moved site to 1&1 hosting, but is broken and redirecting to GoDaddy 404 [closed]
I'm actually just trying to mirror a GoDaddy site on a subdirectory of my personal 1&1 hosting.
I just strait up copy-pasted the file structure, and copied the Database, using a search replace ...
1
vote
0answers
2k views
Failed to load resource: the server responded with a status of 404 (Not Found) [closed]
Using Google Chrome Console and also Firebug I get Failed to load resource error on each page.
It's an undefined image and the undefined resource is always
http://mysite.com/pagename/undefined
I've ...
4
votes
5answers
2k views
How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html?
How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html?
I read and it seems its not possible when using permalinks?
The objective is to reduce the server ...
0
votes
1answer
72 views
404 Error for Custom Post type
I have a function on my theme ("dancefloor" by "Gorilla Themes") that allows me to make a post in a section in my dashboard called Events (Custom post Type).
If you schedule the date to anytime in ...
0
votes
2answers
256 views
Multisite - 404 when accessing sub-sites
Setting up a multisite on a blog which root url is dev.domain.com, using subdomains. So, for example, a subsites address : site1.dev.domain.com
Everything works fine as long as i stay on the main ...
1
vote
0answers
71 views
Getting 404 error on my wp rewrite error
The code I'm using to rewrite urls with query vars:
function add_query_vars($aVars) {
$aVars[] = "city";
$aVars[] = "address";
$aVars[] = "pg";
return $aVars;
}
// hook add_query_vars ...
1
vote
0answers
74 views
Wordpress 404 Page displaying on a sub directory that has it's own 404 page
On a subdirectory such as http://website.com/sub/index.html that has it's own .htaccess is still for some reason showing the 404 page I have for Wordpress which is on the directory above this one.
...
0
votes
1answer
105 views
Browsing to permalink prefix results in 404
I have set my blog permalink as follows:
/news/%postname%
This works. Going to any post, such as /news/test, will serve the single.php as expected. I can also browse to a category such as ...
2
votes
1answer
181 views
Best way to strip character entities (%20 etc)
I have a heap of images inside MovableType, on an old server. There are plenty which have character entities like %20 to represent spaces.
I've used some plugins to import the images and change the ...
1
vote
0answers
553 views
How do I locate the exact location where this error is occurring 404 page not found
I recently installed a wordpress theme and lots of plugins. This error appears on blog post after refreshing page for second time anywhere in between the post content. Here's the link to my site:
...
0
votes
1answer
360 views
either single-{custom}.php 404's OR /taxonomy/ 404's - custom post type and taxonomy permalinks
I've been playing around with custom post types and taxonomies and banging my head off walls on numerous occasions now - I believe I've read every forum on the internet on how to solve various issues ...
0
votes
1answer
292 views
404 Error on Custom Post Type / Custom Taxonomy
I have a registered post type with 'rewrite' set as slug=>cpt_name, with_front=>true.
register_post_type( 'objection_handling',
array(
...
0
votes
2answers
317 views
Custom Post Type Taxonomy Permalinks [closed]
I am having a very specific issue on permalinks.
I have a custom post type and a taxonomy.
Using the function below sorted out the correct structure of the taxonomy permalinks.
function ...
-1
votes
1answer
460 views
Page/2 posts don't load and give 404
I load 10 posts on my home.php and I have the 'posts_nav_link()' function to acces to latest entries. But when I click on the previous entries, the link redirect me to mysite.com/page/2 and give me a ...
1
vote
2answers
272 views
404 redirecting to home [closed]
I have a multisite network, and my theme has a custom 404.php. On all the child sites this 404 handler is being correctly used, but on the primary site all 404s go back to the home page without ...
0
votes
1answer
97 views
What is the permalink structure for custom taxonomy? [closed]
I have a custom post type called d-questions, and a taxonomy called q-categories with a term called books.
The problem is that I can not find the right URL to get the list of post belonging to the ...
1
vote
0answers
47 views
redirect deleted / drafted pages
A client asked me to unpublished a page, which I did. However, I kept it as a draft, just in case they wanted to republish at a future date.
My issue is that anyone with this link will hit a 404 ...