Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

Filter by
Sorted by
Tagged with
3
votes
1answer
219 views

Wordpress keeps deleting .htaccess file

Recently my wordpress site has been experiencing problems with all pages returning a 404 error. I tracked this down to the fact the .htaccess file in my wordpress directory keeps disappearing. When ...
0
votes
0answers
102 views

404 Errors on Every Page (Including Homepage) After Migrating From IIS to Apache

I recently migrated a client site from an IIS environment to a LAMP stack. The back end of the site works fine. I can log in and make any changes I like. The front end, however only displays 404 ...
0
votes
1answer
775 views

WordPress 404 Images - Images not found after deleted from media

I am trying to develop the website to find images that have been deleted from the media library as they were not needed. These Images that I have deleted have previously been on pages but have been ...
0
votes
0answers
710 views

Custom permalink /%category%/%postname%/ produces 404 on each post

I have installed brand-new wordpress-4.8.3. My next steps were, as in WPBegginer - How to Include Category and Subcategory in WordPress URLs: In Dashboard/Settings/Permalinks, I've pasted: /%...
0
votes
1answer
26 views

Problem with permalinks

I have changed the category base name and now it is "blog", it works ok. But when I change structure by /blog/%category%/%postname%/. It shows 404. If I remove blog in structure it works again, but ...
10
votes
1answer
9k views

What is This esc_html_e() i wordpress php?

why do developers use <?php esc_html_e() >? in 404 pages, what does it mean, how does it works?
1
vote
2answers
363 views

How do I skip wordpress's 404 handling?

I want to extend my website in a way that is parallel to the wordpress theme. Example: My website with wordpress is at: www.mywebsite.com By ftp I added a directory named test, in which there is a ...
3
votes
2answers
298 views

Why does my WordPress show a 404 message for 403 forbidden directories?

I'm not sure if this is specific to my site or not, but if anyone knows how to override this behavior, that would be most appreciated! I have WordPress installed in the root directory of my server. ...
0
votes
0answers
695 views

Custom taxonomy template shows 404 Error

I have created taxonomy & custom post type. Here is the code: add_action('init', 'register_post_types'); function register_post_types(){ register_taxonomy('products', array('product'), array(...
0
votes
0answers
804 views

wordpress form action page not found

I have created a page template with a form like this <form id="form_52393" class="appnitro" action="../application.php" method="post"> <div class="form_description"> <h2>Finance ...
0
votes
1answer
327 views

Custom Post Type Draft Preview Goes to 404

I have created a custom post type within a custom plugin. Here is my post type definition: function hrd_record_custom_post_type() { $args = array( 'description' => __( '...
0
votes
2answers
1k views

Wordpress Site Page Exists but Error 404

I created a website using Wordpress on a local server and the migrated it to an online server both manually and using the plugin Duplicator. All went fine and I have the same configuration of the ...
0
votes
0answers
168 views

Clicking PUBLISH Now Redirects to 404 PAGE NOT FOUND

I have a Wordpress blog running Sahifa Theme. I am unable to post anything on my blog . When ever I goto the NEW POST Page , I create a title , add content to post and post it. it works fine unless ...
0
votes
1answer
45 views

Multiple duplicate URL's

I keep getting these duplicate pages for my about page. I can't figure out what is causing this issue. Any help or direction?
-1
votes
2answers
675 views

Home page returns 404

Must have inadvertently changed something recently as when visiting the base URL (i.e. the homepage) for my local development site it returns a 404. All of the other pages seem to work fine. As per ...
2
votes
2answers
2k views

Custom Post Type rewrite rules not working, how to alter the rewrite order?

I've gone through four or five Codex pages, a dozens Stackexchange pages, and four or five dev blogs trying to solve this. I have a custom post type called authors. The CPT is set up correctly, I ...
0
votes
1answer
409 views

Hierarchical taxonomies in permalink cause 404 for sub term archive

I've got a custom post type with hierarchical taxonomies. The permalink structure is as follows: www.mysite.com/post_type/taxonomy_term -> works (tax archive page) www.mysite.com/post_type/...
-1
votes
1answer
424 views

Subdomain add comment redirect to 404 not found page iis server

Multisite iis server Error 404 not found when I add a comment into subdiectory post. And this is my web.config file : <?xml version="1.0" encoding="UTF-8"?> <configuration> <...
1
vote
1answer
195 views

Set a CPT slug as a base name for all the taxonomies

I'm looking for help because I tried to look on the web for a solution but I can't to solve my 404 page issue. I'm bulding a custom WordPress plugin for my photo club. This plugin wants to display ...
0
votes
0answers
1k views

Custom Rest API namespace and endpoints are responding with 404 & 503 errors

I am new to WordPress plugin development. I was developing a plugin for WordPress that would be used to create mobile apps for WordPress Bloggers. The whole source code of the plugin is at:- https://...
1
vote
1answer
116 views

How To Create A Custom Taxonomy 404 Page

I can't seem to find any documentation on this and Google is only showing results for people who have 404 pages caused by their incorrectly implemented taxonomies. I want to show a custom 404 page ...
0
votes
1answer
853 views

Redirect WP 404 to html

Needing to redirect php 404 to plain html to reduce server load. Is there any update to this? How do I skip wordpress's 404 handling and redirect all 404 errors for static files to 404.html? #...
0
votes
1answer
17 views

My question:When I started my website, the “page not found” error always came up

I make sure my .htaccess is set to default and I try to install a freshly new WordPress but nothing changed.
0
votes
0answers
33 views

wordpress - page not loading (404) even if it's there

I have a major issue with WordPress. I created a page and it keeps saying "page not found" when trying to navigate to it. The page is definitely there. I tried removing and re-creating .htaccess ...
0
votes
1answer
2k views

https to https problem - 404 and can't login

Really hope someone can help with a problem I’ve been trying to fix for several hours. Site in question is: http://www.lisasell.co.uk/ Firstly, content is failing to load due to them being served ...
3
votes
1answer
514 views

Trying to load different syles for 404.php page

I've created a 404.php page and my theme correctly loads that page when an error is made. My question is - how do I style it? I notice that the body tag like this: <body class="error404"> So ...
0
votes
4answers
79 views

Moving Website-URL

I tried moving my website according to the codex (after trying it the wrong way - by just changing the URL in WordPress settings) but now that I did, my homepage is still there but the rest of my ...
0
votes
0answers
60 views

After changing permalink, getting 404 for one particular category

For my webits seems fine: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...
1
vote
1answer
660 views

Virtual robots.txt missing

on every WordPress installation there is a default virtual robots.txt file with the following User-agent: * Disallow: /wp-admin/ Allow: /wp-admin/admin-ajax.php but on my 2 last project /robots.txt ...
0
votes
1answer
1k views

All files being pulled from wp-content returning 404 error

I am on a fresh install of Wordpress on Ubuntu / LAMP, and noticed that none of my site's images are showing. I tried to install a theme (Sydney) and none of the images were showing up. I was able to ...
1
vote
1answer
152 views

Intercept 404 and try to serve another content if exists?

I have an old site on archive.mysite.com and new site on mysite.com. Archive has some old custom CMS and it will take some time to transfer old articles to new site, so for the time being I'd like to ...
5
votes
1answer
385 views

How to open the 404 page in the Theme Customizer preview?

I have added option fields in my theme's Customizer that allow you to change how your 404 page looks. Problem is, the user can't actively see the changes. I have a specific section for my fields, ...
0
votes
0answers
64 views

Making permalink for custom post type/custom taxonomy. Stuck with 404 in the single post

I have looked around noth in StackOverflow and WP.SE. Like many before me, I just want this structure mysite.com/custom-post-type/custom-taxonomy-term/post-name Or, in other words, mysite.com/...
0
votes
2answers
920 views

pre_get_posts gives 404 error on Custom Post

I know this has been covered in different ways a thousand times (I read all the posts), but it seems not specifically for my case. I can't really get it to work myself, being a big development noobie. ...
0
votes
1answer
87 views

Custom WP_Query always respond with 200 status even when no entry

I'm using a custom WP_Query. The code is something like below: $portfolio_args = array( 'post_type' => 'portfolio', 'posts_per_page' => 5, 'paged' => ...
1
vote
0answers
30 views

Moved from Blogger to Wordpress, however I can only see the Google 404 page

I'm using a Namecheap domain that I redirected and set up correctly. However when I use a proxy to view the domain, I see the coming soon page. Why can I not see the updated site? Thanks
1
vote
0answers
45 views

Twitter shortlink 404 not found [closed]

When i put a url of my wordpress page on twitter show the following however if i click go to the correct page any idea?
0
votes
2answers
220 views

Custom 404 redirect for a luddite

I apologize in advance for the likely misuse of coding terminology. I am not very skilled when it comes to this. In a separate website, I have links which when clicked bring up a .pdf of images ...
1
vote
1answer
7k views

Homepage Not Found Error [closed]

Ok, so for some reason my homepage always comes up as "page not found". I have searched through countless other threads discussing this same issue, but none of the answers seemed to help me. I'm new ...
0
votes
1answer
701 views

Posts and Pages: 404 Page not found

Every post and page is not found. I checked .htaccess, generated a new one, debugged (disabling plugins), checked the static page and the blog page, also nothig. The last thing I did was check if ...
0
votes
1answer
135 views

Post type Permalink

I create a custom post type: $rewrite = array( 'slug' => '%categories%', 'with_front' => false, 'pages' => true, 'feeds' ...
0
votes
1answer
1k views

Homepage URL showing a 404 error

I migrated my website to this new domain. I removed the original homepage and re-labelled the current homepage as home.Now when I visit the homepage, it shows a 404 error although the page exist and ...
1
vote
1answer
736 views

When a link doesn't exist, how to tell Wordpress what to do? (404 Error Page)

If you click any link that doesn't exist in my main site site, for example this link, i expect the WordPress to use the default index.php file that has this loop inside it: <div class="main col &...
0
votes
2answers
3k views

Redirect to home if page doesn't exists [duplicate]

I would like to redirect users to my home page when the requested page or post cannot be found, but don't know how to go about with that. How do I proceed with such and action?
2
votes
3answers
6k views

How do I redirect all 404 errors of a specific post type to another URL?

I have a custom post type containing job listings, that is highly volatile. Jobs are frequently added and removed. Our analytics show that a lot of crawling errors are for detail pages of jobs that ...
2
votes
1answer
3k views

Pagination shows 404 after a certain number of pages

This issue is in my index.php (although i'm thinking about moving this code to home.php instead). I have a custom WP_Query which shows some posts per page, specifying post types (i have a custom type ...
1
vote
0answers
129 views

How to return a 404 when custom query matches nothing?

I'm using add_rewrite_rule() to create a new endpoint to my author URL. example.com/author/my-endpoint Here's my code: // Pagination rule. add_rewrite_rule( '^author/([^/]+)/my-endpoint/([0-9]+)/?$'...
0
votes
1answer
48 views

including 404 page in post page

I created custom query var. So I need to include 404 page if query var not exists. function add_rewrites(){ add_rewrite_rule( '^custom_post_type/([^/]*)/([^/]*)/?', 'index.php?...
0
votes
1answer
1k views

Custom Permalink with child categories creating 404

I am trying to have a permalink strucutre as follows: /category [List all the posts for the category] /category/child-category [List all the posts for the child category] /category/post-slug My ...
0
votes
1answer
35 views

Wordpress website giving 404

Hey a friend of mine was having trouble with a wordpress website and all pages other then home pages keep giving a 404 error. look at the php admin database and wp_options are pointing to the right ...

1
3 4
5
6 7
17