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

If i use the bellow code in my .htacess file would google bot (or any other search spiders) see the example.tumblr.com url or would they see the same url as the user ie. example.co.uk/blog ?

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^example.co.uk/blog$
    RewriteCond %{REQUEST_URI} !/standard
    RewriteRule ^(.*)$ http://example.tumblr.com$1   [R]
</IfModule>
share|improve this question
add comment

2 Answers 2

up vote 0 down vote accepted

Google sees the same URL your users see. They don't have access to your htaccess file just like everybody else.

share|improve this answer
add comment

In the case of any redirect, Google (and your users' browsers) will be presented with both URL's.

In the case you presented, however, the users' browsers will display the first URL while the contents of the second URL are requested as you are issuing a 302 Temporary redirect (which implies that the URL the user requested is only being redirected temporarily).

Users are not able to determine the actual URL if you are using mod_rewrite to translate URL's being passed to Apache or as a proxy, however, the example provided is not such a case.

share|improve this answer
    
Does google see this as borderline blackhat, or is it ok ? How could i change it to pass it to apache as you mensioned ? –  sam Jun 14 '12 at 21:38
1  
There is nothing "blackhat" about this method, however, Google recommends that you use a canonical URL in this situation. Rather than proxying requests, you should use Tumblr's custom domain feature to implement a subdomain for your Tumblr blog. –  danlefree Jun 14 '12 at 22:40
    
i agree the simplest way to do this would be to have tumblr on the subdomain but we want it on the subdirectory so that we get the benefit of the backlinks back to the root domain –  sam Jun 15 '12 at 10:14
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.