Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I have a new domain which has an index.php file. Inside this file, I get user's IP, save it and redirect to another page on another domain. So there is no output, only header info. Will Google index this domain?

share|improve this question
    
Google indexed a whole bunch of our PHP redirects and I'm currently fixing it. They indexed our URLs and the destination URLs, page descriptions, etc... –  user31760 Oct 4 '13 at 20:39
add comment

1 Answer

up vote 2 down vote accepted

No, they will not. Search engines follow redirects and the final landing page gets credit for any links, etc, that the original URL has. So that first domain will have no SEO value. So doing this like having a keyword rich domain redirect to another domain has no value and isn't worth doing (as an example).

To follow up on this, search engines don't see nor care where a redirect comes from. So a redirect from PHP or htaccess or something else are all the same to them.

share|improve this answer
    
What if users have to go through a 'gateway' page to access any sub-pages of the site? (i.e., forced to "sign in gateway" before they can proceed to actual content.) Would search engines see both pages or just the 'gateway' page? –  Casey Hodge Aug 31 '13 at 15:48
1  
They'll just see the first site since they can't get past the login. –  John Conde Sep 1 '13 at 0:16
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.