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.
Questions tagged [http-status-code-301]
1797 questions
2
votes
1 answer
Angular 5 not handling 301 responses properly in firefox
I am building this web application in Angular that communicates with a REST api. Sometimes, when the front end requests some data via GET to a certain url, the server does not return a 200 OK immediately but throws a 301 response instead. Chrome…

Kilian Perdomo Curbelo
- 1,281
- 1
- 15
- 31
2
votes
2 answers
301 Redirect with unicode characters - C#
I need to do a 301 redirect on a URL that may have Unicode characters in it.
HttpUtility.UrlEncode isn't doing what I need because if I encode the whole URL it encodes any ':' or '/'
HttpUtility.UrlEncode("http://www.हिन्दी.com") =…

topher-j
- 2,221
- 5
- 24
- 35
2
votes
1 answer
301 Redirect Specific Pages in Nginx BEFORE Redirecting Entire Domain/Catch All
I have thousands of pages to 301 redirect in nginx. I can achieve this using
return 301 https://www.newdomain.com$request_uri;
However, there is approximately 6 pages that I would like to redirect to a changed slug/path on the new domain, eg
…

Matt
- 383
- 3
- 14
2
votes
1 answer
python scrapy images pipeline not downloading (301 error)
I am trying to download images from pages like this on this site: http://39.moscowfilmfestival.ru/miff39/eng/films/?id=39016. but i receive a 301 error and the images are not downloaded. i can download all my other data points without a problem,…

mnkhan
- 37
- 4
2
votes
1 answer
nginx return 301 remove some parameters
I'm trying to remove some parameters using nginx return 301.
For example I want URLs redirected like this:
https://www.example.com/one?wanted=1&unwanted1=1 -> https://www.example.com/one?wanted=1
https://www.example.com/one?unwanted1=1 ->…

Alex
- 115
- 10
2
votes
4 answers
How to get a variable from url and 301 redirect with php?
I want to get a variable from the url and 301 redirect visitors to new domain and include that variable in the new url in php.
For example, visitor comes to my site http://example.com/?id=abc on that site I have an index.php file that has this kind…

Allar
- 85
- 9
2
votes
1 answer
Redirect Specific Subdomains URLs to Specific URLs
I am transferring my blog over from a subdomain to domain and was wondering how to write the very specific 301 redirects.
blog.domain.com/blog-post >> domain.com/blog-post
blog.domain.com/blog-post-2 >> domain.com/blog-post-2
We are leaving our…

Fuj50
- 21
- 2
2
votes
6 answers
redirecting w., ww., wwww. to -> www
I'm trying to redirect site.com w.site.com ww.site.com and wwww.site.com to www.site.com.
My boss wants to ensure typos make it to the site as well.
They redirect fine. I'm using ASP.Net and throw a 301 redirect back using a regular expression,…

Armstrongest
- 15,181
- 13
- 67
- 106
2
votes
1 answer
WordPress Redirection not working after Moving to Subdirectory
Today I moved my wordpress website from Root Directory to Subdirectory in same domain. I moved all files to new subdirectory. I have also setup 301 wildcard redirection from Hosting cpanel
301 Wildcard redirection Setting -
Old Address -…

freshvibes
- 173
- 3
- 15
2
votes
4 answers
Difference between Postman and a simple Http Request with superagent
I was wondering what's the difference between a simple POST request with superagent and a POST request with Postman.
Because Im trying to scrap a website, so I made a post request with Postman and everythings work fine, I got the result expected.…

Paul
- 101
- 1
- 1
- 12
2
votes
1 answer
Subdomain/subfolder redirect conflict
We have a bunch of sites that are subdomains. We are changing the structure of these sites so they are a single site instead of multiple WordPress installs. No problem. Many of the subdomains have authority so we want to add 301 redirects from these…

Garet H.
- 135
- 2
- 12
2
votes
2 answers
Can I keep robots.txt in a contextpath and give a 301 redirect?
My website uses a contextpath (eg: www.example.com/abc). The robots.txt is available at www.example.com/abc/robots.txt and I have given a 301 redirect in webserver to redirect www.example.com/robots.txt to www.example.com/abc/robots.txt.
My question…

Aromal
- 176
- 2
- 8
2
votes
1 answer
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 file:
file1.jpg
file2.jpg
file3.jpg
Then when…

riofly
- 1,694
- 3
- 19
- 40
2
votes
1 answer
.htaccess; 301 redirect not working
I tried the following code in .htaccess to 301 redirect www.example.com/?content=file.php&id=16 www.example.com/file/This-is-the-title/16
RewriteEngine on
Redirect 301 /?content=file.php&id=16 /file/This-is-the-title/16
But it's not redirecting.…
user6790913
2
votes
1 answer
Mailgun::CommunicationError via nginx '301 Moved Permanently' error
I have a Ruby web app that sends email via Mailgun.
My Mailgun account & gem are properly set up and I can send emails manually (via curl, for instance).
The API key and the API base URL (https sandbox domain) are stored in environment…

sliute
- 101
- 5