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
4
votes
1 answer

301 Redirects in PHP: Do I need to explicitly tell it that it's a 301?

This one should be easy... Do I need to explicitly tell PHP that I want to do a 301 redirect? Like this... Usually, I leave off the first statement and…
4
votes
3 answers

Redirect all pages of one TLD to another

\I'm darn nearly pulling my hair out trying to figure this out tonight. I'm hoping someone can help me out. I have 3 TLD's for a site, similar to the following: www.domain.com www.domain.org www.domain.net They are all located in the same…
C Dog
  • 157
  • 1
  • 3
  • 12
4
votes
2 answers

301 Redirect issue, spaces in old URL?

I have a ton of 301 Redirects set up from an old site to a new one (which is running on Joomla 1.6, but that shouldn't matter.) I have some old url's that have spaces in them, for example: Redirect 301 /city/Louisiana_New%20Orleans…
Bill Rust
  • 141
  • 4
  • 14
4
votes
3 answers

301 Redirect vs DNS change: Is it ever safe to kill a 301 redirect and update the DNS for a subdomain?

I have a site running at a subdomain that has been migrated to a new server and new domain name. To preserve search credits I know a 301 redirect is the proper way to handle migrating the transition. (The marketing department speaks of 301…
johnml
  • 453
  • 1
  • 6
  • 16
4
votes
2 answers

IIS6 301 redirect while preserving paths

I'm having a problem with an IIS6 301 redirect. I've set up the following redirect for the domain domain.com to go to www.domain.com$S$Q under the Home Directory tab in Site Properties. If I navigate to domain.com I get redirected to www.domain.com…
Mr. Flibble
  • 341
  • 2
  • 9
  • 21
4
votes
2 answers

is it bad to use 301,302 redirects after form submission

Is it bad to use 301, 302 redirects after processing a form submission. Or is it only advised to use for pages that have "really been moved". I can show users nice urls if I use redirects. Please advice. Thanks
robert
  • 8,459
  • 9
  • 45
  • 70
4
votes
1 answer

Sharepoint 2010 search cannot crawl mediawiki site

Using Sharepoint 2010 enterprise search, we are trying to crawl our internal mediawiki based wiki site. Search fails with error : 'The URL was permanently moved. ( URL redirected to ... )'. Since the wiki site has case sensitive URLs, when…
4
votes
1 answer

HttpClient GetStringAsync returns 301, but browsers are able to navigate to correct address

I thought that HttpClient should be able to handle 301 error code, and redirect to the correct address. However with the following address (https://www.npr.org/templates/rss/podcast.php?id=510298), it throws exception. The browsers are able to…
resp78
  • 1,414
  • 16
  • 37
4
votes
2 answers

Redirecting from https to http?

Strange problem here. I use FullCalendar to initiate an ajax request to an endpoint on my server. Endpoint is: https://my_website/events/?start=2019-03-31&end=2019-05-12&_=1555698739056 Note that it is explicitly https. However, when I initiate a…
WillardSolutions
  • 2,316
  • 4
  • 28
  • 38
4
votes
2 answers

WordPress 301 Redirects on IIS

I am really struggling with getting the 301 redirects working on our server after deploying a new website. Everything I have tried has either resulted in a 500 error or just plain not working. Below is the rewrite section excerpt from my web.config…
Burgi
  • 421
  • 8
  • 24
4
votes
4 answers

Google Cloud DNS and 301 redirects

Namecheap and other registrars provide a way to setup HTTP 301 or 302 redirects when configuring DNS. It is a nice feature since otherwise you would need to implement it yourself. See screenshot below from Namecheap DNS configuration page. Does…
Alex
  • 1,021
  • 3
  • 10
  • 16
4
votes
3 answers

Post Data is not recieved on destination URL

I had a scenario in which a data on form in http://www.omsite.com to be posted on other website say http://www.hissite.com/myfolder Now whenever the data was being posted, rather then getting posted or getting Status Code 200 I was getting 301…
OM The Eternity
  • 15,694
  • 44
  • 120
  • 182
4
votes
1 answer

Can 301 and 301 http redirects be cached with an expires header?

I've run a couple tests and cannot get either a 301 or 302 redirect to be cached. In my case I have a large number of avatar icons on a page which I want redirected to a gravatar and/or facebook icon and I want the redirect to be cached, preferably…
4
votes
0 answers

Volley 301/302 redirects, use okhttp or modify Volley Library

I am having an issue with Volley and 301/302 redirects, specifically from http -> https. I am making API calls to a server that in the near future will be issuing a 301 redirect when calling http instead of https. I am getting a ServerError on…
j.t.h.
  • 121
  • 1
  • 11
4
votes
3 answers

Pretty URLs Vs. Duplicate Content

I'm trying to clear up a grey area about this much talked about topic... Like most devs, I've made some pretty URLs with mod_rewrite. My sites internal links point to the pretty URLs and things are working nicely. But, I can still access the old…
Adam
  • 1,098
  • 1
  • 8
  • 17