Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

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

Wordpress Installation in Subfolder only works half

Hello I need to pick your brains here. So one of my projects went live a long time ago. The customer then asked me to build a second project which was supposed to be go live on a different domain. Not ...
1
vote
1answer
47 views

Fixing custom 404 pages broken by Wordpress in a subdirectory

I used Installatron to install Wordpress in a subdirectory of an existing PHP website, to add a blog to that website. My main website is administered via cPanel. Here's my website directory structure: ...
1
vote
1answer
33 views

404 error when passing “cat” parameter to URL

I encounter a strange problem with our WordPress site. When I check the URL: https://www.example.com/outlook-repair/ Everything is fine. When I pass several parameters to the URL, for example: https:/...
1
vote
1answer
17 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 ...
0
votes
0answers
18 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
0
votes
1answer
118 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
417 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
33 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 ...
1
vote
1answer
34 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. ...
0
votes
0answers
8 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
15 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
0answers
7 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 ...
0
votes
0answers
12 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
0answers
10 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
3answers
145 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 ...
0
votes
1answer
26 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
15 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
0answers
40 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
0answers
37 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
2answers
259 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 ...
0
votes
0answers
18 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
66 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
9 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
149 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 ...
0
votes
0answers
65 views

image size url returns 404

I just recently migrated some old blog posts from one site to another. The images have been imported as well. However, now most of my images are returning 404 errors. Images are linking to /wp-...
0
votes
1answer
132 views

Result of Custom WP_Query appears on 404 Page (but result are found!)

I wrote a custom search page. It was working well then I added additional changes, now I got 404-Result-problem. The problem keep there even I did revert (I have backup) and I cleared the cache. I'm ...
0
votes
0answers
16 views

Page not found - Custom blog type - Projects

I've been following a tutorial on how to create a template in wordpress and I've found myself stuck in a problem. My custom blog type: Project, when I click on it after adding some styling on the ...
1
vote
1answer
31 views

Trouble with CPT Child 404

I'm having issues with some custom post types showing up as 404's. I have a website i've been running for about five years, that has a CPT called Videos, and a single PAGE which acts as the Videos ...
0
votes
0answers
70 views

How do i POST to WordPress rest API from the same domain?

I created a custom rest API route - > http://mydomain/wp-json/v1/wp/custom/user now this POST request to this route works perfectly from a remote host. Some things change in my dev env and the JS ...
1
vote
1answer
51 views

WP-admin giving 404

When I go to /wp-admin/ I get a 404 not found error. This just started tonight. I don't have any plugins that change the login or the wp-admin page. my site is https://sturtz.ml/ This is all the log ...
1
vote
1answer
54 views

Wordpress Theme's 404 File Getting Called Every Page Load?

It seems for some reason, on a theme I'm editing, the 404.php template is being executed every page load, even though what was actually being displayed was perfectly normal, whether it be the index, a ...
-1
votes
1answer
89 views

Plugin - Proper way to handle 404 pages?

Working on a plugin to redirect 404 to a different page. Here's the problem. I occasionally get this in the log file: [08-Apr-2020 14:48:45 UTC] PHP Notice: Trying to get property of non-object in ...
1
vote
1answer
93 views

Wordpress post-name permalink redirects to site.com

When permalink is set to plain everything works fine. but when I change permalink to post name only Wordpress home page(dev.site.com/blog) works fine, but for other pages(e.g., dev.site.com/blog/first-...
0
votes
0answers
30 views

Sudden 404 pages on product category archives

For no apparent reasons, wordpress is returning 404 error on pages that were working fine. Affected pages are product category archive pages. They are a mixture of custom and default pages. The ...
0
votes
0answers
36 views

Show a message if there are no active posts in category

I want to show a specific message or a page or post if there are no active posts in a particular category. Currently, it shows a default "Content not found" message. I created a new template-blog.php ...
0
votes
1answer
30 views

Custom taxonomy returns 404 even with saving permalinks

I'm trying to register a custom posttype and custom post type taxonomy. But when I create a term and click the button "view" to see the custom taxonomy page it returns a 404. I've tried resaving the ...
0
votes
2answers
75 views

why is my wordpress not loading any images?

I have installed wordpress on google compute engine.. Running nginx, wordpress and https.. The site doesn't load the admin panel or the images.. throws up 404 error on chrome inspection HTTP404: ...
0
votes
0answers
77 views

All pages gives 404 except homepage and wp-login

I have setup a local wordpress environment by downloading the files and database from live site. Then I changed the site URL in wp-options table and changed user password for login. The homepage and ...
0
votes
1answer
30 views

Redirect search.php to 404.php

anyone knows how to redirect search.php to 404.php when no search results found? I've got more than 1000s of soft 404 errors due to this search feature. I just want to redirect nothing found results ...
0
votes
2answers
86 views

How to redirect an old page url to the homepage

I deleted a post from a site and I used yoast to move the URL (error 301) to another post, now I am struggling because I want to move the deleted content to the site homepage instead of blog post. ...
0
votes
1answer
47 views

category/category_name pagination 404 error

<div class="row"> <?php $currCat = get_category(get_query_var('cat')); $cat_name = $currCat->name; $cat_id = get_cat_ID( $cat_name ); $paged = (get_query_var('paged')) ...
2
votes
2answers
47 views

Permalinks Structure and 404 Question

I don't know enough wordpress to actually be able to find the correct wording to get any real information on my problem. Someone asked me to set up a simple news system in a already running website, ...
0
votes
0answers
45 views

problem : Custom taxonomy template not showing

I make a custom post type and a custom taxonomy for that but the template of my custom taxonomy return error 404 , for example local/mywebsite/people/catea show error 404. function web_people() { ...
1
vote
0answers
38 views

Cannot access wp-admin/wp-login.php (Wordpress backend) anymore, what could be wrong?

The problem I cannot access my Wordpress backend anymore. I cannot do this by going to www.sitename.com/wp-admin and not by going to www.sitename.com/wp-login.php. When I go to /wp-admin, it seems ...
0
votes
2answers
219 views

Wordpress Admin page Error 404

I am not getting the Wordpress Admin login page. It is displaying Error 404 Not found. Can anyone help me exactly what could be the issue?
0
votes
1answer
30 views

Why aren't links clickable on my 404 error page? [closed]

I have created a custom 404 error page. However, the links are not clickable. The link to my site and a random 404 page is https://createandgo.com/error404page
0
votes
1answer
869 views

Page not found - Wamp green, phpmyadmin working

I was working using a Wamp server installed on my computer and everything was working fine for my Wordpress site. But when I installed a plugin, the entire WP site is gone as it displays "Oops! That ...
0
votes
1answer
79 views

404 not working, going to homepage; how to fix?

Whenever I call a non-existent page, say http://www.example.com/foobar/, it should invoke the 404.php theme template file. In my case, however, the site redirects to the homepage, / I'm not sure ...
0
votes
3answers
263 views

Site Address (URL) - causing error 404

I have the following situation which I tried to solve by using the website and forum but unfortunately no success so far. I am working on a new site (old still-now online) but when changing the Site ...
0
votes
0answers
57 views

Show custom post status when logged out

Background: I have a few different custom post status on my installation. We use them for a workflow. Lets just say for example we have: Draft (built in) ForClient (custom) Published (built in) Now ...

1
2
3 4 5
18