Can we do a 302 redirect using javascript?

Or should it be server side?

Currently, google requires all sites to be 302 per page, not regular pages.

How do I do this using javascript? Can I just type 302 in meta or something else?

Note: sorry. This is not Google for the search engine. This is a google feed provider for bodis.com above.com namedrive.com and a bunch of other guy.

I am a domain parker. I get domains hosted on a search engine and moving traffic elsewhere. The problem is that Google now prohibits URL redirects. I just think, how can I keep my rating with more transparent forwarding, such as 302. The destination URL is pretty, I would say empty.

+7
source share
2 answers

This is how redirect 302 works:

HTTP 302 means found. In a way, the server tells the client where to get the requested page.

Example:

Client sends:

 GET /index.html HTTP/1.1 Host: www.yourdomain.com 

The server responds:

 HTTP/1.1 302 Found Location: http:/yoursubdomain.someotherdomain.com/somefolder 

That is why you could not get the 302 redirect using javascript. This is part of the HTTP protocol. The download page is not loaded by the client browser before redirecting.

+17
source

Google really does not read JavaScript. This needs to be done at the .htaccess or php level.

+2
source

All Articles