Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

Filter by
Sorted by
Tagged with
0
votes
1answer
596 views

Same base for category and post

I'd like to have the following: Single Post test.com/blog/new-category/post-name/ Category test.com/blog/new-category/ So I changed the Permalink structure to: /blog/%category%/%postname%/ and the ...
2
votes
2answers
703 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
16 views

WP is redirecting instead of going to 404

Why is wordpress redirecting to an existing page if the uri is staring like an existing page instead of redirecting to a 404 ? Example, i have theses pages mysite.com/aeroport mysite.com/intralog ...
4
votes
2answers
1k views

How to disable a Custom Post Type Feed?

I have been experiencing 404 errors in my Google webmaster tools reports, caused by Custom Post Type (CPT) feed URLs. I would like to completely deactivate the CPT feed URLs, so that the 404 errors ...
0
votes
2answers
2k views

get 404 when accessing wp-admin/plugin-install.php

While freshly installed, I cannot access the 'Add new plugins` page whatsoever. It just keep waiting & then redirect me to 404 page of the current theme. I'm not sure what went wrong as the ...
0
votes
2answers
88 views

Custom structure permalink preventing 404

I am trying to find out what impact setting a custom stucture prefix in permalinks has on 404's I have a custom structure of: /news-opinion/%postname%/ This is working as expected if you tried to go ...
2
votes
3answers
4k views

Remove Slug from Custom Post Type results in 404

I am working on a plugin that creates lists. After creating a list, I wanted to remove the slug from the url Post type: $rewrite = [ 'slug' => 'single-link', 'with_front' =&...
0
votes
0answers
15 views

Status Code 406

i have a site. when I am checking my website's health I am facing an error. my site URL code is shown 404 and 406. now please help me to resolve this problem. URL
1
vote
1answer
24 views

Permalinks by page/post name returning 404

All my content is currently setup as pages. I want to setup permalinks with page names. I read some posts online that said choosing %postname% path should render the content. But this does not work. ...
36
votes
6answers
102k views

After server migration only the homepage works

I have recently changed hosting of my WordPress site to VPS.net. I have moved all of my files and imported the database. Everything appeared to be fine until I clicked a link and noticed that all of ...
1
vote
1answer
666 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
145 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,...
0
votes
2answers
1k 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
22 views

Redirect to /404/

Is there a way I can redirect the URL slug of the 404 template to /404/ so so for example if I have /category/media/blah it redirects to /404/ Is that possible I don't know if it can be done using ....
0
votes
1answer
583 views

How to fix 404 error in pagination in categories of woocommerce with common url base /shop/?

I can’t find a solution — unification of url bases of products and categories in woocommerce. I have found only one working solution: In Settings -> Permalinks: Category base change on shop Custom ...
2
votes
3answers
1k 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/...
0
votes
1answer
42 views

Images not loading on webpage, and links to other media give 404 Not Found

Had some recent problems where to start with only homepage text was visible, all other pages/links gave 404 Not Found. Now managed to get pages to function but all images fail to load, plus links to ...
0
votes
1answer
22 views

Woocommerce posts and products links works only once and then get 404 error

Permalink to products and post of my website getting 404 error. after saving the permalink type in Setting -> Permalink page they will work correctly. But if I refresh the links they get 404 error ...
0
votes
1answer
649 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 ...
0
votes
1answer
201 views

Wordpress Inner pages giving 404 Error after shifted to new server

When we made site at our server end it was working fine which was linux server.after hosting this site to AWS then it is giving me error for inner pages and if we change something it is not affecting ...
0
votes
0answers
7 views

Website works for visitors, but search analytics reveals that the pages are going to 404.html?page=id

I have a wordpress website with a custom theme, and the code is on github. The website works and users are able to browse, interact, etc fine. I have no complaints from users on the site. But when I ...
0
votes
0answers
12 views

Reactivating WP Multisite after deactivated

The Multisite (subdomain version) defining lines in my wp-config.php file were some how commented out. I uncommented them, but now I am unable to get to the other sites on the network (Site2). Site2,...
0
votes
2answers
785 views

Permalinks keep reverting to 404 unless I re-save them

I'm running the latest (and constantly updated) version of WordPress on Nginx. Every now and then I wake up to a site full of 404 errors. The fix is to go into the permalinks and just save the ...
0
votes
2answers
929 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
0answers
6 views

404 on all plugin activation

I have a problem that i get a 404 on deactivation of a plugin. It happened since today. I tried to see if something is up in error log, but its not. When i click on deactivate I go straight to 404 ...
1
vote
1answer
907 views

URL parameters causing 404 on home page, but nowhere else

I am writing a plugin that utilizes URL parameters. For some reason, adding one of these parameters to the home page of my website causes a 404 (http://bleaney.ca/?source=asdf). Adding the parameter ...
0
votes
0answers
11 views

404 error on subcategry archive page

I wonder if you can help. This is, for me, one of the most frustrating aspects of WordPress. This question has been asked numerous times on various forums and there is never a satisfactory answer. To ...
0
votes
1answer
606 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
1answer
1k views

Category url generate 404 error

My permalink setting is: /blog/%year%/%monthnum%/%postname%/ everything is working fine except the category URL. for example, my website generate category URL like - www.example.com/blog/article/ ...
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) ...
0
votes
1answer
600 views

How to redirect a wrong search on my wordpress website to the error 404 page?

For example, my wordpress website is www.example.com. If I type example.com/abcdef or any other url that does not exist, it redirects to my custom 404 page without any issues. However, when I search ...
0
votes
0answers
9 views

Show content/template for the /tag/ or /taxonomy/ part of the URL in Wordpress

Heu, I've been trying to figure this problem out but can't quite find an answer. On my WordPress site, the URL for tags is mysite.com/tag/tag-term. This displays fine using the tag.php template. ...
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 ...
0
votes
0answers
16 views

multisite 404 subfolder same name slug as site

To keep this short, as a disclaimer, I'm not that versed with WordPress, servers, etc, so I might talk gibberish: The Issue 🠺 I have a multisite root, let's call it msite.com 🠺 This site spawns ...
0
votes
1answer
25 views

Extending page urls without getting a 404

I'm using a shortcode on some of my pages and need to add a gender to the page urls. For example, if the page slug is "/ninjas/", I need to be able to use urls like "/ninjas/female/&...
0
votes
0answers
12 views

How to detect 404 url and make this link underline or change background color?

<a id="block_bell" href="<?php echo get_home_url(); ?>/email-newsletter"><i class="fa fa-bell" aria-hidden="true"></i> &nbsp; Get New Posts Notification</a> if this ...
0
votes
1answer
1k views

Why is there /index.php/ in all my links? How do I remove it?

I recently realized that my rss feed is not working, because a plugin was assuming it's under mydomain.com/feed But it isn't. I get an 404 error. I figured out that instead my feed is under ...
0
votes
0answers
17 views

Redirect empty search to another page

I am using the following code to change the url of my search results page: function wpb_change_search_url() { if (is_search() && !empty($_GET['s'])) { wp_redirect(home_url("/suche/...
0
votes
1answer
915 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
2answers
32 views

Wordpress 404 all pages except home

I know this question might be a repeat or duplicate of another post. I've been getting this error after shortly migrating the domain from http to https. I've been following multiple questions and ...
1
vote
1answer
606 views

Custom post type permalink tag 404

I'm using wp-types to build a wordpress site. I'm happy with the types and their fields, I just wanted to created a function that shows parents in the url - see blow function that achieves this - also ...
0
votes
1answer
696 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 portfolio-template-...
5
votes
5answers
20k views

multisite 404 error for subdirectory

I am attempting to create a multisite as a subdirectory and I have followed the network instructions to the 'T'. The multisite seems to be set up correctly, the .htaccess and wp-config.php files seem ...
0
votes
0answers
17 views

How to solve 404 permalink structure problem?

I have a 404 problem on internal pages (posts, pages ...) My site is in the following folder structure site1 contains (site2 and site3) site1 is functioning normally, but sites2 and 3 are having the ...
0
votes
1answer
7 views

Page not found if mod_cache_disk is active

I set in Apache the mod_cache_disk module, but I'm getting 404 page not found error on every page and posts. I'm using WordPress Multisite on Debian 10 server with PHP FPM 7.4. I set this below in ...
0
votes
0answers
8 views

After Wordpress migration, most files are not found and there is staging prefix

I attempted to migrate old Wordpress website to DigitalOcean. Steps: Create a new droplet using Wordpress on Ubuntu 18.04 Wordpress template Set it up. After dummy site is OK, I copied wp-content to ...
0
votes
1answer
753 views

Custom taxonomy rewrite in permalinks for posts gives 404 on pages

So I've got a custom taxonomy (called "version") for just posts wich works fine.. My Problem is that i want to use this tax in my permalinks eg URL.com/12-3/cat/postname.. which works also fine for ...
0
votes
1answer
691 views

Wordpress subcategories return 404 in custom template

I have a custom Wordpress theme and a main menu on top. This menu has links to different pages, one of them is a link to a Category (archive). It works fine for any first level category, but if I link ...
1
vote
3answers
6k views

Why can I not view image attachment pages?

I have a problem with images. I can see my uploaded images, as previously, through the media library. I can access each image by clicking on "edit". But if I then click on "View Attachment Page", I ...
0
votes
1answer
32 views

Remove all feeds and return custom 404 page

Hello I found the below code on a old post. I have opened up using ftp and created a new plugin folder called my first plugin and created it in the plugins folder - I have opened up my first plugin ...

1
2 3 4 5
17