Need help getting page with redirect to index on google

Ruriko

Power Member
Joined
May 4, 2008
Messages
717
Reaction score
26
I created a html page with a page redirect with this code:

Code:
<head>
<meta http-equiv="Content-Language" content="en-us">
<title>Welcome</title><meta name="keywords" content>
<meta name="description" content>
<meta http-equiv="refresh" content="0; URL=https://yourlink.here">
</head>

but google won't index so I tried php & nginx method

PHP:
Code:
<?php
header("Location: https://yourlink.here");
exit();
?>

Nginx:
Code:
server {
listen 80;
server_name www.old-domain.com;
return 301 https://yourlink.here$request_uri;
}

Tried all 3 methods and google still won't index. Does anyone know how to make google index a page with redirect? I'm just using my own domain to hide affiliate link by redirecting
 
Back
Top