Questions tagged [404-error]

a 404 error occurs when the requested page cannot be found

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

How to redirect if 404 error in wordpress then redirect 404.php url

i need to redirect my wordpress blog url to 404.php (file) If some type wrong URL like example.com/blog/fgsdgfdg then I need to be redirect URL to example.com/blog/404.php Below code not working ...
0
votes
0answers
12 views

Wordpress /page/2 gives 404 when custom permalinks is set to %category%%postname%

My WordPress permalink settings, Custom Structure: %category%%postname%. Used next_posts_link() in custom theme in archive.php to get next posts link. Result: Next Page >> (display as expected) ...
0
votes
1answer
18 views

Could use some help moving site to subdirectory, what am i doing wrong?

I've been trying to move my WP site to a sub-directory, let's say /blog instead of mysite.com, i've been able to do this successfully in the past but now everything is going wrong. I followed several ...
0
votes
1answer
24 views

How can I redirect users on the new 404 page without plugin?

I have a 404 page in my theme but I am not using that page. I have created a new 404 page in WordPress using wpbakery page builder. I need to know how can I redirect users on the new 404 page without ...
-1
votes
0answers
19 views

Remove in redirect_canonical() http redirection

Is there an approved way to stop WP from redirecting you? If you mistype the name of a page it should provide a 404 error. Instead the "feature of WP" guesses what you want and if you have a ...
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
30 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: ...
0
votes
1answer
15 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.datanumen.com/outlook-repair/ Everything is fine. When I pass several parameters to the URL, for example: https:...
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 ...
0
votes
0answers
16 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
26 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
43 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 ...
1
vote
1answer
25 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
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
13 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
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 ...
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
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
2answers
92 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
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
0answers
20 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
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
2answers
35 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
9 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
34 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
12 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
23 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
27 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
30 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 ...
0
votes
1answer
44 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
40 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 ...
0
votes
0answers
19 views

Multisite error handler does not work as expected

We are running a multisite on a Plesk Apache server (handled through nginx proxy). The installation of the WordPress multisite (subdirectories, no subdomains) works without any issues, expect the the ...
0
votes
1answer
38 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 ...
0
votes
0answers
9 views

404 on archive page with category and tag in url

Any archive page with a category and a tag returns a 404, for example: https://lespetitsproducteurs.be/categorie/recettes/etiquette/amande/ While archive page with category only works fine: https://...
1
vote
1answer
49 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
20 views

Only default permalinks working wordpress others become 404 error

My problem is in my WordPress site only default permalinks are working. When I change permalinks all pages become not found (404). The home page and the shop page is the only working with post name. ...
0
votes
0answers
26 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
34 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
29 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
43 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
49 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
26 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
42 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
32 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')) ...
0
votes
0answers
11 views

404 error page after hiding product-category slug

after i used this code: add_filter('request', function( $vars ) { global $wpdb; if(isset($vars['error'])){ $lastVar = basename($_SERVER['REQUEST_URI']); $vars['attachment'] = $...

1
2 3 4 5
17