Questions tagged [http-status-code-301]
The 301 or Moved Permanently error message is a HTTP standard response code indicating that the requested resource has been assigned a new permanent URI. Future references should use one of the returned URIs.
http-status-code-301
1,811
questions
0
votes
1
answer
124
views
Need help to redirect multiple sites in 301
I would like to have help to redirect several of my secondary domain names to my main domain.
At the same time my main domain name must be redirected in "https" and with the "www".
...
0
votes
0
answers
85
views
Scrapy [scrapy.core.engine] DEBUG: Crawled (301)
I'm getting this error while scraping the web with Scrapy, and I've looked through all sorts of 301 errors on the site, tried the solutions as well, but it's still not fixed. Usually everyone gets ...
0
votes
1
answer
397
views
Next.js webhook returns a 301 (redirect) instead of 200
I have a Next.js app and I created an endpoint to handle a webhook from a third-party payment application.
The code for that endpoint is very simple, it checks that the order was paid and updates my ...
1
vote
1
answer
178
views
Apache and AWS HTTP to HTTPS Header Issue
I am using AWS Cloudfront and AWS Loadbalancer to serve our website. The LB redirects to traffic coming from HTTP to HTTPS.
On Cloudfront you can add HEADERS and I added both apache2 config file and ...
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=['...
1
vote
1
answer
899
views
Nginx 301 redirect with wildcard
Need to create a nginx 301 redirect.
From: /blog/some-article
To: /blog/article/some-article
Current nginx configuration:
location /blog/(.*)$ {
rewrite ^/blog/(.*)$ ^/blog/article$1 ...
0
votes
0
answers
138
views
301 redirect in htaccess for URL with ?lt parameter
I need to put 301 redirect in htaccess for http://www.price4india.co.in/?lt which shall redirect it to home page i.e. http://www.price4india.co.in/
I am able to use the following code successfully but ...
4
votes
3
answers
8k
views
NextJs - How to redirect to a new URL with 301 status code?
NextJs - I am trying to redirect from /index.html to / URL using below code,
module.exports = {
async redirects() {
return [
{
source: '/index.html',
destination: '/',
...
0
votes
1
answer
165
views
Apache .htaccess redirect to nested folder
I want to redirect www.example.com/folder/ -> www.example.com/folder/subfolder/. I tried the following entries in my .htaccess.
<IfModule mod_rewrite.c>
RewriteEngine On
# 1
#...
1
vote
0
answers
979
views
Use Strapi to manage a list of 301 redirects on the frontend
I have a Strapi (v4) backend and a Nuxt (v2) frontend, all the content is fetched using REST and GraphQL. Each environment runs on a different server and domain (provider is Digital Ocean)
My client ...
0
votes
1
answer
167
views
NGNIX redirect from subdomain to different domain (Forge)
I have a subdomain that I need to redirect to a completely different domain. This subdomain was set up as a CNAME that pointed to Shopify, now it's being removed completely.
Lets say the subdomain is ...
0
votes
1
answer
271
views
htaccess with 301 redirect for entire site except one page
I am using the following code in htaccess to redirect to new domain with 301:
#Options +FollowSymLinks
RewriteEngine on
RewriteRule ^(.*)$ http://www.newdomain.com/$1 [R=301,L]
It works perfectly. ...
0
votes
1
answer
32
views
Redirect few pages to new pages on new domain and the rest to the mainpage with .htaccess
I am trying to setup a redirection with .htaccess file.
So far I have this:
Redirect 301 /temat-konfiguracja-internetu-w-a2mobile https://infomobile.pl/konfiguracja-internetu-w-a2mobile-22500
Redirect ...
1
vote
1
answer
638
views
htaccess: redirect 301 image if it doesn't exist
in my htaccess file I should make sure that if a resource "a specific image" is not present it must do a 301 redirect with a different extension.
I try to explain myself better:
image: test....
0
votes
1
answer
220
views
How to redirect if from reddit with nginx?
I post images on reddit by hotlinking images from my site. By allowing reddit to hotlink my images it will display the image on their site but I also want it to redirect if a user clicks on the image ...