a 404 error occurs when the requested page cannot be found

learn more… | top users | synonyms (1)

0
votes
1answer
59 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 ...
0
votes
1answer
90 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
1answer
106 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 ...
0
votes
0answers
33 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
37 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 ...
0
votes
0answers
25 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
439 views

How to redirect to 404 page not found page in wordpress

I have created a custom template for a custom post in a childtheme. if some conditions are not satisfied i want to redirect the page to 404 page not found page. if(false) { //redirect to 404 page ...
0
votes
1answer
125 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, ...
0
votes
0answers
159 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
0answers
135 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
2answers
319 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
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) ...
0
votes
2answers
103 views

How to intercept a 404 error

I'd like to intercept 404 errors and do some things before to show the 404 error page. How can intercept the 404 error?
0
votes
1answer
63 views

new post link leads to 404 error page

Whenever I try to add new posts or pages, or edit posts or pages from the admin menu, from the front end or even from the all posts and all pages lists, I can't. I'm always taken to a 404 error page. ...
0
votes
0answers
63 views

404 errors on some URLs after setting up wordpress multisite

I recently installed multisite on wordpress and followed setup as directed in wordpress documents. This is what my .htaccess looks like: RewriteEngine On RewriteBase / RewriteRule ...
0
votes
0answers
91 views

Adding %subcategory% to permalink structure: either subcategory or single-post outputs 404

I've had this problem before but never actually found a solution. Let's say i have a portfolio category, a drawings subcategory and a my-new-drawing single post, which belongs to portfolio/drawings/. ...
0
votes
0answers
17 views

My page wont publish

Since today I can't publish on my website. I'm building a new one and when I create a new post and hit PUBLISH it only appears on the main page, when I click on it it goes PAGE NOT FOUND even previews ...
0
votes
1answer
25 views

Published custom posts missing

On my wordpress dashboard I noticed a large number of past posts were missing. All (708) | Published (386) | Drafts (17) | Pending (8) | Private (1) | Trash (3) - Total 412 Our items are custom ...
0
votes
0answers
101 views

Wordpress & AngularJS – Routes and redirects

Working on my first project with AngularJS. Pretty straightforward, but I'm wondering. I have a CPT named "project". And also a state named /project. Trying to access /project redirects to the Project ...
0
votes
2answers
36 views

404 error when i try to search by category or by tag

I have following problem. When I try to search by tag or by category, I have 404 error. It means that when URL is like "domain.com/category/smt/" or "domain.com/tag/smt/", I have the error. I tried ...
0
votes
0answers
21 views

Strange repetitive 404 errors

For some time, my Wordpress website has been visited now and off by visitor(s) always with IPs related to Digital Ocean company (such as 45.55.233.182) hitting non-existing pages as below ...
0
votes
0answers
24 views

Given a url, is there an api to tell me if it would 404?

This may seem a duplicate to this question, but it's quite a different context. I have a multi-site that is managed by a Zend Framework application. Users can create their own blogs, which is done by ...
0
votes
0answers
35 views

PHP in root of wordpress directory

I need to put small php file in root directory of wordpress, but when I try to access to it http://MYSITE/cert.php I get the 404 page. Could you help me?
0
votes
2answers
635 views

404 Error while accessing the font files

Added a custom font as follows Uploaded web-font files and given them the 777 permission http://example.com/wp-content/themes/mytheme/css/fonts/ Added rules to the css file @font-face { ...
0
votes
0answers
138 views

Custom Post Type (child) and Permalinks Rewrite Rules

I know this question has been asked a lot of times. However I couldn't managed to solve the issue I have for a few days now so if you could help me it would mean a lot to me. I have created custom ...
0
votes
1answer
146 views

Changing post per page causing 404 for pagination. Need a redirect htaccess rule

i changed my wp theme and i changed the "post per page" wp setting on "reading"now because i want to display more posts on the archives pages. i m using pagination on the archives so a lot of pages ...
0
votes
0answers
36 views

404 suggests posts instead of showing custom 404 when the url is not home

I have a custom 404 witch works well when you write the url like www.site.com/randomCrapAbC but when there is post-type or category in the slug, wordpress tries to suggest post in that category ...
0
votes
0answers
173 views

How to stop redirect to 404 page when I use jquery onchange function to select a value from a form field in wordpress

I'm developing a wordpress woocommerce website where I put a form where two drop down exists. where selecting a value from the first dropdown after page refresh it automatically goes the second ...
0
votes
0answers
42 views

Am getting weird 404 errors in my wordpress site

I recently moved my site www.gadgetronicx.com from Blogger to Wordpress and i am loving wordpress. But i have been getting weird 404 errors when looking at my Google webmasters account. The 404 error ...
0
votes
1answer
28 views

Know which script/page is being called by ajax call

I have to reverse-engineer a wordpress site, which requires some updates, but I am unable to make it work properly at one place. Here, on click of a link, an AJAX call is being made to some page that ...
0
votes
0answers
36 views

WordPress render's 404 for known rewrite rule

I have defined rewrite rule for my hieratical custom post type. remove_filter('template_redirect', 'redirect_canonical'); function add_artists_query_vars($aVars) { $aVars[] = "work_index"; ...
0
votes
1answer
58 views

page nested 3 levels deep shows 404

I just created a page called Series at /media/archive/series/, parenting this new page under /media/archive/ The page at /media/archive works, but this new page, 3 levels off the root, shows a 404. ...
0
votes
0answers
32 views

Intermittent Rewrite Problems

I have a few custom rewrites on a site I have developed. I'm having a couple of issues: The rewrites don't work properly without using "flush_rewrite_rules(true)" directly following their setup. It ...
0
votes
0answers
39 views

Using an actual page for 404 instead of a template

How would I override the 404 template and fetch a whole page instead? Currently I have achieved this by doing a http request from 404.php(the 404 template) to http://example.org/error404, which in ...
0
votes
0answers
63 views

How to get redirection to not redirect to 404 page?

I have a client, who has a page, that has links like site-url/profiles/username/ But instead of passing the username on the url parameter and used to query database, to get profile info, it somehow ...
0
votes
0answers
196 views

Permalink Rewrite with Archive - Archive gets 404

I have a custom post type, "toys", with a custom taxonomy, "toy_series". I wanted to get the custom taxonomy in the permalink: domain/toys/toy_series/toy-name I got that working just fine by ...
0
votes
0answers
129 views

Getting 404 pages when upgrading from 3.5.2 to 4.1.1

So strange but after doing a manual upgrade, most of the pages work except for these: http://www.swa1.design2dev.com/report_card/commitments/country-commitments/burundi/ this works though: ...
0
votes
0answers
111 views

Redirect/Route every broken link to 404 page

I have a wordpress site. It was transferred from another CMS now. And WP doesn't want to route non existent links to 404 page. For example, http://betall.ru/aisi-316-analog/234524/ routing to ...
0
votes
0answers
67 views

Pagination calling 404.php

I tryed to ask my question on wordpress.org but nobody was able to answer me and this is pretty important to skip it so i try here: I have an index.php with 4 differents loops and a pagination on the ...
0
votes
1answer
38 views

Change the permalinks structure

I have decided my structure of permalinks from /?p=125 to /sample-page. I have tried some methods, but anyone works. I have changed the structure in settings/permalinks and I have tried with some ...
0
votes
1answer
123 views

Error 404 on wp-includes directory

I'm having a lot of 404 errors for files which are supposed to be in the /wp-includes/ folder. This makes some part of the website and the admin panel unusable (in the edit post page it won't even ...
0
votes
0answers
28 views

I can't visit the website when I am logged in

I have a problem with my website and I'm not able to find the solution. I have installed Wordpress 4.1, but I got this problem also with older versions. The problem is that when I login as a ...
0
votes
1answer
97 views

Local copy of site returns 404 for all content outside of core .php templates

It appears that this is a common problem, but I have tried every fix I've seen on this forum and still cannot get the local copy of my WP site working. I can view my homepage at localhost/mysite, and ...
0
votes
0answers
463 views

Wordpress update page 404 error

When creating/updating pages in my WordPress 4.0.1 installation, clicking the "Update" or "Publish" button to submit my changes redirects my browsers to the apparently non-existent URL ...
0
votes
1answer
40 views

When using number in url it is redircting to same page but when using character it redirects to 404

I have a website e.g abc.com in wordpress, when I enter any url like abc.com/blog/1232132 then it is redirecting to the same url and showing the content of abc.com/blog but when I am using urls like ...
0
votes
1answer
379 views

Custom post type single (permalink) throws a 404 error

I'm working on a website that has Woocommerce installed (also a CPT if I'm right, but that one works fine). This website has a custom post type for jobs, this cpt has posts that are linked to in the ...
0
votes
1answer
117 views

Broken paths on taxonomies after changing permalink to post name

I have a custom taxonomy. I was able to access the list of items with term foo in taxonomy bar at mysite.dev/?bar=foo. I then changed my permalink options from the default to "post name". I can no ...
0
votes
1answer
87 views

Error 404 wordpress redirecting URL

i'm having problems after trying to redirect my website with wordpress. I wanted not to have something like that: "www.example.com/wordpress/". So I did that in the wp-config file: ...