All Questions
Tagged with http-status-code-301 http-status-code-404
46
questions
2
votes
1
answer
1k
views
Nuxt 3 : How to redirect all 404 to home page with a 301 (SSR)
I am searching how to catch all my 404 pages on my Nuxt 3 project and redirect them using a status code 301 to the home page (using SSR).
0
votes
1
answer
89
views
Set 404 redirect before 301 with IIS config file
I got a website where is working 301 redirect from url with "/" in the end to the same link without "/".
e.g. from www.website.com/test/ to www.website.com/test
it seems that this ...
0
votes
1
answer
206
views
got 301 and then 404 error response while calling end point in odoo15
here is my code:
from odoo import http
_logger = logging.getLogger(__name__)
class CrmController(http.Controller):
@http.route('/crm/lead', type='json', auth='none', website=True, methods=['...
0
votes
1
answer
46
views
htaccess 301 issuing problem with sub-directory creating a 404
I'm trying to redirect an url that gives me an error 404.
I need to redirect 'website.com/example/sub-example' to 'website.com/example2'
Note that in my .htaccess file 'example2' already exists ...
0
votes
0
answers
31
views
Set up a redirect
There is a mixin in the view, where a slash is added to the url. It is necessary that when you open a non-existent page (for example, example.com/index), immediately throw 404, without 301 (so as not ...
2
votes
1
answer
1k
views
301 Redirect in .htaccess is appending old file path/name to new url
I have two URLs: old-site.com and new-site.com.
My root folder on the old-site.com has NO FILES in it but only the .htaccess file. I don’t want to use the old domain anymore. However, I do want to ...
0
votes
0
answers
26
views
How to catch and potential 301 or 404 errors when appropriate?
We had a little mishap where an https binding was created for a website without a hostname (just an ip), and then another website was created with only an http binding to a hostname using the same ip ...
1
vote
2
answers
4k
views
Redirect to a URL with 404 status code in Java
How to redirect a http request to a specific URL with 404 status code. I am using
Response.sendRedirect("/404userfriendlypage")
The response code of requested URL is 301, instead i need that to be ...
0
votes
1
answer
114
views
Wordpress 404.php 301 redirect but exclude one directory
I use the following code in 404.php file, to redirect all 404 errors to home page
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: ".get_bloginfo('url'));
exit();
?>
Now, I ...
-1
votes
1
answer
27
views
Renamed and Transferred site successful but old Social Media links are broken
I just got finished with moving my site from one domain name to another. All old links on social media and search engines are broken. If I click on a link from reddit or Facebook it still points to ...
0
votes
1
answer
72
views
Redirect sub-folders to a new folder in WordPress
I have been struggling to redirect old urls to the new website pages.
Goal is to redirect many sub-sub folder pages like :
https://www.example.com/news/events/event18
to a unique folder : https://...
1
vote
1
answer
55
views
How to blanket change 1000's of 301's to 404's in Joomla?
I recently migrated an old Wordpress site over to Joomla and it has created an obscene amount of 301's in the Redirects component and I would like to change these to 404's as 99% of them have no ...
0
votes
1
answer
37
views
htaccess that redirects non-https to https site causing pages that should be 404 to show the homepage instead. How do i fix this?
I have little to no experience with htaccess so this may be incredibly simple to fix. The following is in my htaccess file:
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^url.co.uk
...
2
votes
1
answer
208
views
How to Redirect on Status 404 in Microsoft Azure Archive Blob
When there is a call to a blob resurce than it is not exists, I need to convert 404 status to 301 status, to redirect user to another resource.
Is it possible?
For example, my blob contains theese ...
0
votes
1
answer
470
views
Google Search Console/Webmaster Tools URL errors; same URLs with and without trailing slash
URLs on my self-hosted Wordpress site end with a trailing slash. If a trailing slash isn't typed in, a 301 redirect is in place to put it in there.
Example:
http://www.babysavers.com/hamilton-...