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

redirect old links (HTML site) to a new page (PHP site)

Recently I built a site with php but the old site they had was all in HTML. So now I dont know what what is the best way to redirect all those old links to the new site (maybe redirect all links with HTML to the main domain) with .htaccess, what is…
TooCooL
  • 20,356
  • 6
  • 30
  • 49
3
votes
1 answer

htaccess 301 Redirect Wildcard for New Base Domain Name

The company I do SEO for have changed their domain name. I have written 301 rewrites to redirect traffic to the new domain. So far, I have a rewrite for 3 changes, of which there are many. By the time I have finished doing them all, there will be…
Electron
  • 969
  • 1
  • 8
  • 22
3
votes
1 answer

301 redirect get pagination

I'm trying to 301 redirect a paginated blog list from an old site onto a new url. I think I'm getting pretty close with the RewriteRule but I'm not quite there yet, this is what I have: RewriteCond %{QUERY_STRING} ^page= RewriteRule ^(blog)?$…
James
  • 739
  • 7
  • 13
3
votes
3 answers

SEO - 301 redirect via 404 page

I am new to this so I will try to explain myself clearly. I am doing my 301 redirect from a custom 404 page. Now I got it working my question is more regarding how google would treat this. Cause we going to a 404 page would google just record it as…
dogwasstar
  • 852
  • 3
  • 16
  • 31
3
votes
1 answer

Twisted: How to find the final destination in case of HTTP 301?

In case of a url that redirects with HTTP 301, twisted.web.client.getPage successfully emulates the browser's behaviour and returns a deferred that fires with the html / response_body of the final destination. How do I get the url of this…
Anuvrat Parashar
  • 2,960
  • 5
  • 28
  • 55
3
votes
2 answers

.htaccess 301 redirect to homepage if page not found

I have cleaned up my site and discarded lots of pages. I have now 10pages left of a 100page site, all static html. I want any request for deleted pages to 301 redirect to homepage but can't figure out the .htaccess rules!
Tutul
  • 726
  • 8
  • 15
3
votes
3 answers

Node.js 303 Permanent Redirect when connecting to AWS-SDK

Good afternoon, I'm trying to set up a connection to my aws product api, however I keep getting a 301 Permanent Redirect Error as follows: { [PermanentRedirect: The bucket you are attempting to access must be addressed using the specified endpoint.…
3
votes
2 answers

301 redirecting pagination with get variables

I'm trying to set 301 redirects on pages that have 'page=1' in the URL to stop duplicate content issues. e.g. http://www.domain.com/reviews/?page=1 to http://www.domain.com/reviews/ I've tried all of the variations I can find and can't seem to get…
James
  • 739
  • 7
  • 13
3
votes
1 answer

PHP in a 404 script to 301?

I want to 301 a large amount of old URLs. Can I do this via PHP in a 404 script, or would this mess up search engine results (them thinking the pages are not found)? My current .htaccess: ErrorDocument 404 /404/ My 404/index.php script…
3
votes
2 answers

In Struts2 how to do permanent redirects (status code 301) without having the parameter appearing in the URL

I have a Struts2 (version 2.2.3) web application. I am trying to redirect old links to new pages. I know I can do this via
Chantz
  • 5,883
  • 10
  • 56
  • 79
3
votes
1 answer

Form submit response 301 or 302

I have a form on my site and every time I submit this form..I get a 301 perm, then a 302 redirect, then another 302 redirect. My data is not submitting because of these redirects. I'm having no luck finding these redirects. There is no .htaccess…
wowzuzz
  • 1,398
  • 11
  • 31
  • 51
3
votes
2 answers

Application.cfm missing Session variables after 301 redirect

Running ColdFusion 7. The Application.cfm loops all session variables into request.session The OnRequestEnd.cfm loops all request.session values back into session It does this so it only needs to lock the scope once when writing the variables in a…
3
votes
2 answers

Regex in .htaccess - how do I 301 a uri if it is found in the HTTP_HOST?

I have a website: www.explainmortgage.com On that website I have http://www.explainmortgage.com and http://www.explainmortgage.com/mortgage (among many other pages). http://www.explainmortgage.com and http://www.explainmortgage.com/mortgage are…
Robert Louis Murphy
  • 1,558
  • 1
  • 16
  • 29
3
votes
3 answers

SEO - Getting a 301 page indexed by search engines

I have a site (say site1.com) which 301-redirects to another page on a different site (say http://site2.com/some/dirty/url). Typical code at site1.com:
Tabrez Ahmed
  • 2,830
  • 6
  • 31
  • 48
3
votes
4 answers

Force Magento no route to return status 301 instead of 404

I have been tasked with forcing all of our 404 pages to return an http status of 301. I have been searching/reading around the web, but I can't find any info on how to accomplish this. Is there a way to change the http status in the layout.xml or…
MrGlass
  • 9,094
  • 17
  • 64
  • 89