1
vote
2answers
44 views

Redirect to an affiliate using PHP or JavaScript redirect?

I was asked to introduce a unified self hosted URL-Shortener/Forwarder/Tracking Service for an website that earns money from affiliates. One example I found was one of the bigger german sites for ...
13
votes
2answers
3k views

What are the Consequences for using Relative Location Headers?

According to the spec, Location headers used in a redirect require a server name HTTP/1.1 301 Moved Permanently ... Location: http://example.com/foo/baz/bar However, in 2012, most web browsers will ...
1
vote
3answers
424 views

302 Moved Temporarily or 301?

HTTP status code checker tool shows HTTP/1.1 302 Moved Temporarily for the home page URL http://someurl.com (just a namesake URL). Also, this URL opens up http://www.someurl.com/general/index. As you ...
1
vote
1answer
358 views

How to handle redirects & http status codes at urls where a product becomes unavailable?

I have this use case that happens frequently: Lots of products for sale, periodically a percentage goes out of stock. A user still browses in on the old url, to a location where a product used to ...
1
vote
2answers
390 views

Temporary website redirect: 3xx or php/meta?

I run a (small) news website which has also a forum in a subfolder of the root. I'm planning to give the site a facelift and a code restructuration, so I wanted to put some redirect on the home page ...