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

Filter by
Sorted by
Tagged with
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
113 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
351 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
61 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
687 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
66 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
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
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
201 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
6k 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
586 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
124 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
611 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
2k 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
4k 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
2k 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
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]+)/?$'...
0
votes
1answer
46 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 ...
0
votes
2answers
313 views

Override 404 when navigating to single php file

I uploaded a php file in the root directory of my Wordpress site that I need to be able to access directly through the browser. When I do, it looks like Wordpress takes over, triggers a 404, and ...
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 ...
0
votes
1answer
29 views

Huge number of 404 pages getting spawned

My website has started generating 404 pages, and now there are more than a thousand 404 pages like so: http://www.mydomainname.com/404-error-page-267/ http://www.mydomainname.com/404-error-page-266/ ...
1
vote
1answer
458 views

404 in custom post type feed with mistake permalink

I have a wordpress site that uses this custom post type : "movie" in theme. I changed permalinks to "%postname%. Every things is ok but google gives a toll 404 error for any custom post type ...
0
votes
2answers
506 views

WP gives 404 error for custom post type with GET variable

I use the following method to add a $_GET Variable to my custom post type in wordpress. add_filter('query_vars', 'add_type2_var', 0, 1); function add_type2_var($vars){ $vars[] = 'type2'; return $...
0
votes
0answers
485 views

404 error next-page [2] PageNavi custom type taxonomy

I have a custom post type called pizza with a custom taxonomy called genero. mypage/pizza/peperoni/ When I click subsequent paginated page links (e.g. [2], [3], [next]) mypage/pizza/peperoni/page/...
1
vote
1answer
246 views

taxonomy tags 404 to custom post types

It works, the tags are displayed in the loop, But when entering one of the tags appears the error 404 I have also created a template tag-pizza.php Here code of the tags add_action( 'init', '...
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? ...
0
votes
1answer
52 views

What could be the reason that i can't access to the other pages of my localhost wordpress website except the homepage?

I can't figure this out on google. I was getting the following error.
2
votes
1answer
3k views

Subfolder multisite issue. Themes and plugin files 404

I've set up a subfolder multisite. Main site: https://cs-amx.org/ Subdomain site: https://cs-amx.org/chypre You see the maintenance screen is well displayed on the main site, but not on the subdomain ...
0
votes
1answer
913 views

Add pagination to search.php page

When I want to use the_posts_pagination() in my search.php page and I click "2" or "3", it goes on 404 page (this link: mywebsite/page/2/?s=a). How can I add pagination for search.php page? SOLVED ...
1
vote
0answers
768 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. ...
0
votes
1answer
576 views

Random 404 on any page

I just used Softaculous to install WP on my shared host. When configuring my site, whether it's at /wp-admin/ or any other page of the site, including home, it randomly throws 404. In which case, I ...
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
2answers
3k views

Can't log into wp-admin after migration from localhost to server

I'm working on WordPress website locally and I'm using Git. I followed this tutorial http://www.designcollective.io/blogs/manage-wordpress-with-git and everything works fine on localhost. I moved my ...
1
vote
0answers
246 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. ...
2
votes
0answers
407 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
1answer
2k views

404 error on custom post type

I know this has been asked a million times but I am pulling out the little hair I have! I have a custom post type called case-study (case-study.php and then linked in functions), a file called single-...
2
votes
4answers
5k views

Unable to modify(update) posts - Page not found

For couple of days I am experiencing issues with modifying some of my posts. When I try to modify the content of post, I get 404 error, redirecting me that page is not found. Doing Google research, ...
1
vote
1answer
4k views

404 on category.php pagination

My blog post page : mysite.com/blog => Work Blog page pagination : mysite.com/blog/page/2 => Work A category post url : mysite.com/blog/cat => Work A post url : mysite.com/blog/cat/postname => ...
2
votes
2answers
536 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 ...
1
vote
1answer
130 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#...
0
votes
1answer
377 views

Wordpress suddenly changed all links to example.com/example.com/<Content>

I have spent the last 3 and a half hours trying to find someone with the same problem as me. What is going on is that my website example.com is not loading properly. When I opened up the inspector I ...
1
vote
1answer
373 views

Empty search results return soft 404

I have recently been notified by Google Webmaster tools that there has been an increase in soft 404 pages. This is due to no results being returned by pre-defined links to search queries that are ...
2
votes
1answer
2k views

Multisite installation on IIS gives 404 trying to access the admin dashboard

There appears to be a bug on the web.config file generated by WordPress, up to version 4.7.2, where the rewrite rules do not work as needed to access the sites defined in the network. When using, for ...
0
votes
1answer
358 views

Custom page category taxonomy 404

product/office/ return 404 error.How is that even possible? should it not go down to index if page is not found ? This is my archive.php file: <?php get_header(); ?> <div id="wrapper"&...
0
votes
2answers
967 views

Home page Pagination - Other pages do not redirect to home page template

I know similar questions have been asked, but none of them seem to answer the question. I've set up a post-loop widget that I put on the home page. It has pagination, but whenever going to any page ...
0
votes
2answers
117 views

Page 2 404 Error - From main homepage, not custom post type

I have a self hosted WordPress blog and I've just discovered that when clicking on page 2 or "next" with the navigation at the bottom of the main homepage (showing the latest posts) I get a 404. From ...