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
3
votes
2 answers

How to redirect everything via Web.config or C# to https://www. version of the site?

I have an ASP.NET website hosted on GoDaddy. I need to redirect (301) every request to https://www.example.com/whatever So for example: http://example.com will be redirected to https://www.example.com http://www.example.com will be redirected to…
empz
  • 11,509
  • 16
  • 65
  • 106
3
votes
1 answer

nginx redirect 301 all pages to another domain / homepage add query string

I ask for help because I have already broken my head, I do not know how to solve the problem ... I move from one domain to another domain, I want all links 301 redirect to to the new domain, but to the home page I want to add query string like…
Sergej Proshe
  • 33
  • 1
  • 4
3
votes
4 answers

How to properly make 301 redirect

I have over 50 html pages that I'm going to move to different folders in the same domain. How to properly make 301 redirects for each one? Some people said to place the redirect in meta html tags. Like this
Tarek Mostafa
  • 378
  • 3
  • 4
  • 15
3
votes
1 answer

How can I call global.asax on .asp page open

Hi on redirecting of catalogsmain.asp I want to call Global.asax file and in that I want to call Application_BeginRequest method. Actual I have one old website which is created in old ASP so it contains all page with extension .asp. Now we had…
user2977985
3
votes
3 answers

Woocommerce pagination - prevent 301 redirect on page 1

Using latest versions of Wordpress & Woocommerce. If I have 2 pages of products in my shop & I click PAGE 1 in my pagination links, I get a 301 redirect that goes to /shop. For SEO purposes I'd like to disable the 301 redirect & keep the link as it…
kb.
  • 1,010
  • 3
  • 17
  • 34
3
votes
2 answers

301 Redirect in Asp.Net MVC

I have an Multiculture MVC2 website. Actually my home page can be accessed with the following…
opaera
  • 31
  • 1
  • 3
3
votes
2 answers

How do I redirect a subdomain to a different domain?

How do I redirect this: www.sub.example.com to this: www.example2.com How is this done -- 301? .htaccess? Can someone point me in the right direction please? My host is NearlyFreeSpeech and the domain I want to redirect to is quite a large site…
izolate
  • 1,590
  • 4
  • 22
  • 35
3
votes
1 answer

Why browsers caches 301 redirect for http://example.com and use it for http://example.com:8080?

I have two site on two different web server(NGINX & nodejs) on my CentOS server. in my NGINX config, I have set http://example.com to be redirected to https://example.com permanently. on the other side, the URL http://example.com:8080 are handle by…
3
votes
3 answers

How to make permanent 301 redirect work when there are parameters in the query string?

I moved some of my old asp pages to new aspx website. In all of the old pages i used (for file example.asp): Response.Status = "301 Moved Permanently"; Response.AddHeader("Location","http://www.example.com/example.aspx"); The problem is that when…
beytz
  • 63
  • 4
3
votes
2 answers

Should I use 301 for in-site redirects?

We would like to redirect to a localized version of our entry webpage if IP is detected to be from a certain country. We are using ASP.Net, GeoLite Country Db (it's a very small, 1Mb downloadable DB at time of writing this question). So, most users…
vgru
  • 49,838
  • 16
  • 120
  • 201
3
votes
3 answers

Remove Old Permalinks?

I have a Wordpress website. I have changed my permalinks several times. All past versions of the permalinks I used are still working. If I type them into the URL bar, I am taken to the page WITHOUT the URL changing/redirecting to the new/current…
dnat
  • 65
  • 2
  • 9
3
votes
1 answer

PHP header() redirect in Google App Engine

I try to make a header redirect on an Google App engine instance with header("HTTP/1.1 301 Moved Permanently"); header("Location: http://".$location); header("Connection: close"); die(); It's working on my local development environment. On Google…
Stephan
  • 461
  • 1
  • 5
  • 17
3
votes
2 answers

301 redirect everything to new root?

I am trying to do a 301 redirect of everything from an old subdomain to a new. I have a simple .htaccess Redirect 301 / http://www.smartphonesoft.com/ However if I goto the old URL with a subdir, it tries to redirect to the new domain with a…
kitenski
  • 639
  • 2
  • 16
  • 25
3
votes
2 answers

Helicon ISAPI_Rewrite 301 redirect certain files from one folder to another

We moved our sites one folder to another folder. Some services we had to keep on old location still. So we had to keep old the folder. We had this on our helicon ISAPI .htaccess file on root of FolderA RewriteRule ^(\w+)\/(\w+)\/(\w+)\/t_(\d+)\/…
Timo77
  • 145
  • 1
  • 1
  • 19
3
votes
1 answer

301 redirect / all images to CDN

For a image gallery I have to use a CDN. Therefor I create a subdomain image.example.com This subdomain points via CNAME to the CDN URL. Old image path: http://www.example.com/files/thumbs I changed all image path in the gallery…
labu77
  • 605
  • 1
  • 9
  • 30