We’re rewarding the question askers & reputations are being recalculated! Read more.

Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

293 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
3
votes
1answer
157 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 ...
3
votes
0answers
1k views

Attachment page 404 not found when image is attached to post

I have this new WP webiste I’m working on. Today I was going to design the attachment.php page so that my image pages would look nice, but found that I was getting a 404 for all of them actually. I’ve ...
3
votes
1answer
196 views

Using a custom field value to redirect away from a 404 page

I’m moving from an old CMS to WordPress. The old articles are saved as posts and the new WordPress permalink is %post-id%. The old URL slug is unique and saved as a custom field for each post; the ...
3
votes
0answers
300 views

Prevent 404 when using pre_get_posts to filter an archive page

I have added a custom taxonomy named "area" to the default "post" post type. It's meant to organize posts by geographical area. In category pages I've added a dropdown that allows the user to filter ...
3
votes
3answers
10k views

404 Error On Category and Tags Pages

Okay So I'm facing a weird problem as i'm receiving 404 errors on blog category and tag pages. I'm using custom theme which includes: tag.php category.php archive.php home.php index.php and 404....
2
votes
0answers
96 views

Custom Category/Subcategory structure

I am building a site with several sections, and one of them is a special page to navigate through categories in a hierarchical style (you can navigate into categories/subcategories and see their ...
2
votes
0answers
111 views

Can rewrites fallback if 404? Rewrite conflict issue

I have pages and product categories on my site: Pages: --About --Contact Products: --Category 1 ----Subcategory 1 --Category 2 Ideally I want mysite.com/category-1/subcategory-1 to show the product ...
2
votes
0answers
406 views

Custom pagination with WP_Query generating 404 error

I'm using WP_Query to generate a custom loop on my blog page. My current blog page is assigned to a page called "Blog" and this page is using the default template file (index.php). Here's a piece of ...
2
votes
2answers
535 views

Wordpress generating 404 on .mp4 file in theme folder

I am trying to load a full width video on my homepage. My situation is almost exactly like: Video Background - (php & css) - generating 404 error on page load - Wordpress Theme File Structure ...
2
votes
2answers
853 views

Moved to new server, all pages work EXCEPT home page (page not found)

I've got the opposite problem a lot of people can when switching servers. All the pages work fine, EXCEPT the home page, which is generating a 404. It's just the blog URL by itself (mysite.com/...
2
votes
1answer
3k views

Remove Parent Category from Child Category URL

I am trying to remove parent category from the child category but each attempt returns a 404 error. Main Category Link (Displays All India Recruitment) Child Category Link (Displays Sub-Category) ...
2
votes
0answers
368 views

Getting a 404 when trying to load /wp-admin/plugin-install.php

I am not sure why, but the back-end of my site is running slow... even though it's running slow, all pages still load, except this one /wp-admin/plugin-install.php (the add new plugin page). I ...
2
votes
0answers
796 views

Turning on the 404 page on localhost

I'm using my localhost (XAMPP client) to test my WordPress website and everything works fine, till it comes to verifying how does my 404.php template looks like. I can't preview any changes, because ...
2
votes
0answers
689 views

Permalink /%category%/%postname%/ returns 404 on OSX

I'm on OSX 10.8.4 with a pretty standard installation of Wordpress 3.6.1 under the local OSX Apache/MySQL. If my permalinks are set to /%category%/%postname%/ I get a 404... This is working on the ...
1
vote
0answers
23 views

Some PDF files get Forbidden Access and other open normally on the same directory subsites

I have a WordPress multi-site with 4 subdomains. All PDFs in the main domain site work fine while on subdomain I get Forbidden access for certain PDFs. For instance when I open: http://example.com/...
1
vote
0answers
67 views

Page preview is shown, updating page gives 404 error

I can add new pages and preview them, but once I upload them I get a 404 "Not found" error. I thought it's a problem with my permalinks, so I followed some tutorials to fix this like http://www....
1
vote
0answers
30 views

Built-In Postname Redirection vs Hard Redirects in relation to SEO and performance

It seems that many Wordpress users, even very experienced ones, aren't aware that, in normal circumstances, with pretty permalinks enabled, an inexactly written or superficially non-matching URL will ...
1
vote
0answers
200 views

Repeating admin-ajax.php not found error in admin

I seem to be getting a repeating 404 error in the Chrome console when in wordpress admin very occasionally it gets marked as a 500 error for the same line, perhaps is something to do with an ...
1
vote
0answers
39 views

Wordpress category with 404 error

Okay, so I'm facing a weird problem as I'm receiving 404 errors on blog category pages and I already did the most popular tricks to solve it, such as: re-install Wordpress update permalinks update ....
1
vote
0answers
39 views

Custom post URL 404 error

I have custom post type and custom taxonomy. Categories works well but posts give me 404. I dont know why. It worked before I define URL for hiearchical categories. Can anybody help me? Main fragments ...
1
vote
0answers
296 views

Getting “404 page not found” error when i access to my Login page

I am getting the 404 error when I enter wp-admin after my domain.I am using infinity free hosting and getting this page https://infinityfree.net/errors/404/ when I access my WordPress login page. Can ...
1
vote
1answer
43 views

How to display content from the main blog on another from multisite network as it would be its own

All solutions for the questions I've seen is just about loading links to posts with a blog switching feature, but I need to show the post from my main blog on sub-blog under the requested URI on my ...
1
vote
0answers
172 views

Single post with a Custom Post Type returns 404, when archives of the CPT work correctly

I have created a custom post type called "medya" with the codes below: <?php function create_posttype() { register_post_type( 'medya', array( 'labels' => ...
1
vote
0answers
98 views

404 redirect to previous category

Hi I'm looking for code that I can place in my theme's functions.php that will redirect 404 pages to the previously viewed category. For example: If www.example.com/category1/item-name goes to a 404,...
1
vote
0answers
2k views

404 Error Contact Form 7 on WordPress

I just created a new website. Everything seems to work perfectly except the contact form. Indeed, the contact form is not working, and affects loading after one try. The chrome console gave me this ...
1
vote
1answer
150 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 ...
1
vote
1answer
538 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 ...
1
vote
0answers
28 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
113 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]+)/?$'...
1
vote
1answer
88 views

Custom 404 page for dashboard

I am trying to set up a 404 page for my WordPress site. I have added a 404.php file to my theme directory and it works correctly. Is there a way to create a 404 page specifically for the dashboard? ...
1
vote
0answers
766 views

Random 404 error on WP

A strange error has occured on my Wordpress (selfhosted). Every 4-5 page loads redirects to 404. There is no way to consistently recreate it, as a page might function or not. Its completely random. ...
1
vote
0answers
80 views

How to prevent a CPT's slug and page slug from conflicting with each other?

I have a custom post type made and it uses 'slug' => 'treatments’. I also have a page made in the back-end that uses /treatments/, but because I have 'has_archive' => false the page loads fine. ...
1
vote
0answers
243 views

404 error Additionally 403 Forbidden error on a URL

On my WordPress website i got a error on www.example.com/blog url only as the screenshot. I already check- Files + Directory permission, everything is right. Code on .htaccess, just WP default code ...
1
vote
0answers
58 views

WordPress randomly shows 404 errors

I am maintaining a wordpress website developed by someone else which is not available. The problem is that it randomly shows 404 template page and when refreshing the page again it shows the page. ...
1
vote
1answer
128 views

cancel reply link results in 404 error

Our blog is in a subdirectory of the WebPage http://example.com/blog. Here is an example of a cancel reply link: <a rel="nofollow" id="cancel-comment-reply-link" href="/postcategory/postname.html#...
1
vote
0answers
72 views

My Homepage Suddenly Disappeared and I Can't Get It Back

All of a sudden my website's homepage (a static page operating as my storefront) disappeared, and its now displaying a blog feed of the latest posts. If I click through on any of these posts in the ...
1
vote
2answers
802 views

wp-tinymce.php 404

My visual editor isn't working on a site after just launching it to a new server. I assumed a permissions issue, but the file itself is set to 644. I tried 755 on it as well and still no go. The ...
1
vote
0answers
75 views

Reoccurring 404 Errors on all subpages

I have a website that, at seemingly random intervals, returns a 404 error for every page on the site excluding the home page. Initially, simply logging into the Dashboard would be enough to fix the ...
1
vote
0answers
654 views

Edit page slug after save, cause 404 by linked pages

I have two page bar page at url: http://www.example.com/bar/ foo page at url: http://www.example.com/foo/ bar page link to foo page in content, eg.: <a href="http://www.example.com/foo/">foo&...
1
vote
0answers
33 views

Images attached to posts from library link to 404 error page

Just building a theme but I am stuck with attachment images. When I add images from the library to posts (or pages) and link them to the "attachment page" I get a 404 error. The link is like "http://...
1
vote
1answer
273 views

Unable to get /%postname%/ permalinks working, 404 on all links

I have only pages, no posts as links. It's just a mock site at the moment. I used a particular theme, set it to "Post name" permalink, and the links worked fine. But then I changed to another theme (...
1
vote
0answers
116 views

Attachment page 404

After I uploaded some files into the Media Library, I clicked "View attachment page" in "Attachment Details", but I got a 404 not found error. The URL is like http://example.com/filename/ and there is ...
1
vote
0answers
135 views

Display child pages on parent page: 404 message overrules shortcode in page

I am trying to get a page to show a list of the child pages. I am using the Foodie Pro theme on the Genesis framework. I am using the following code to do so: add_filter('the_excerpt', 'do_shortcode'...
1
vote
1answer
464 views

Correct permalinks and 404-error

I have a paid plugin that creates a custom type categories and posts in this categories. I want to get URLs like site_name/category_name/post_name. This plugin forms links like this: List item for ...
1
vote
0answers
23 views

What would cause a theme to add extra characters to blog post links?

I've been working for the past couple days to figure out why a theme is adding " title=" to the end of a given blog post's URL, resulting in a 404 error. I've authored test posts, same result. I'...
1
vote
0answers
19 views

Getting 404 when Access post which name start with Digit

I am facing some strange issue with post pages/ Getting Error for URL : www.example.com/5-reasons-to-use-wordpress Working fine it I change post name like [5 to five] : www.example.com/five-...
1
vote
0answers
24 views

Blog's post count cause irratic behavior

Using WP 4.4, if i set my 'max posts' in Settings > Reading = 1 , Reload blog page [which is front page] the page loads infinite 404s i have this in the start of my format.php <?php if ( !...
1
vote
0answers
59 views

404 when going to /blog

I'm trying to merge an old wordpress blog with a new wordpress site. Effectively all I want is to bring across the posts and link off to them from a link in the navigation called "blog".... simple ...
1
vote
0answers
447 views

Permalinks 404 error with HTTPS host

My new permalinks continue displaying a 404 error on my site even after adding the AllowOverride and Rewrite modules parameters. Here is my default-ssl.conf file : <IfModule mod_ssl.c> <...
1
vote
0answers
711 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 ...