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.

1797 questions
2
votes
1 answer

Htaccess for static content not working!

So I setted up the following lines in order to redirect some requests to my static domain: RewriteEngine On RewriteBase / RewriteRule ^img/(.*)$ http://static.mydomain.com/img/$1 [R=301] RewriteRule ^css/(.*)$ http://static.mydomain.com/css/$1…
2
votes
1 answer

Sending a 301/302 redirect from a Python CGI script

I keep finding answers on how to read a redirect from an HTTP client response out of Python, but I can't figure out how to send a 301 or 302 redirect back to the client. Seems this should work, but I always get a 200 response before the…
2
votes
1 answer

SEO and Duplicate URLS

I'm updating a website's menu system and adding SEO urls. I'll have two URLs pointing to a similar resource for a while but only one of them will be rendered on the menu. Should I leave the old URLs or delete them? If I leave them then google…
Rimian
  • 36,864
  • 16
  • 117
  • 117
2
votes
0 answers

How can we do 301 and 302 redirection with angular and node? Angular app is working as server side rendering app ( angular universal)

I am working on a CMS system with angular as a front-end and .net mvc as a backend for my api's. Angular universal with server side rendering is also implemented. The issue is i cannot figure out how to redirect with 301 and 302. My application has…
2
votes
3 answers

How to process 301 redirects with Nuxt ServerMiddleware and Apollo GraphQL

I am currently building a Vue / Nuxt app coupled with a modified Saleor installation to sell products online. As we are migrating from an existing system we need to be able to process 301 redirects from our old website's URLs into the new websites…
Pete Dermott
  • 663
  • 1
  • 9
  • 20
2
votes
1 answer

301 Redirects are not working on GoDaddy server

I have a website hosted at GoDaddy. The url is www.immi.hu. We have changed the old URLs as the old site was replaced with new One. I'm trying to redirect some old URLs to new URLs under the same domain as Google has cached them, and do not want to…
2
votes
1 answer

How not to loose referer value on 301 https redirects in Cloudflare Workers

Am trying to pass Ref(f)erer via 301 redirect from HTTPS domainA to HTTPS domainB using cloudflare workers. 1) User enters https://domainA.com in a browsers address field, such request headers are send to server: This request is then handled by…
2
votes
1 answer

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 pass the link juice to the new domain. Therefore,…
2
votes
2 answers

301 Redirects to WWW with HSTS Preload Header

I intend to HSTS preload a site, and have see the following header. No problem. It works. Header set Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" env=HTTPS A condition of HSTS preloading is that I also redirect all HTTP…
carmi
  • 41
  • 4
2
votes
1 answer

Nginx: What is causing this 301 redirect?

I still don't know why my webpage is showing myapp.com redirected you too many times. Nginx is only used as a proxy for my django channels application, which is running with daphne. Nginx is running with no errors. myapp systemd[1]: Starting A high…
Trilla
  • 943
  • 2
  • 15
  • 31
2
votes
0 answers

Nuxt.js dynamic 301 redirection's with API matching parameters

I'm trying to 301 redirect old links to new one, the structure of old link is: http://www.example.com/used/details360?rule=11406 The new one should look like this: http://www.example.com/cars/{make}/{model}/(rule number from the old link) Problem I…
2
votes
5 answers

C++ HTTP always 301 using sockets

I'm sick of this. ALWAYS when I make a HTTP GET query from a C/C++ program using just plain sockets I get 301 Moved Permanently's. Normally I'd use libcURL, but in this case I don't want to add another library, I just need to download one flat…
orlp
  • 112,504
  • 36
  • 218
  • 315
2
votes
1 answer

Python HTTP always 301 using sockets

I write a simple program to get some information from a website using python. but when I run the code below, it always returns the following 301 info. At the same time, my browser can visit the website easily. Please tell me why this happens and…
2
votes
1 answer

All my sites are return 301 instead of 200

All my sites are return 301 response code instead of 200. My sites are hosted on amazon aws and my dns are managed by cloudflare. I am using free ssl from cloudflares. I was testing my site in third party websites. And it seems everywhere i am…
Ahsan Aasim
  • 1,177
  • 3
  • 14
  • 40
2
votes
1 answer

How do I 301 redirect /Home to root?

Here is my route in Global.asax to remove /Home: routes.MapRoute("Root", "{action}/{id}", new { controller = "Home", action = "Index", id = UrlParameter.Optional } ); Well I need to setup a 301 redirect because someone linked to…
Jack Marchetti
  • 15,536
  • 14
  • 81
  • 117