Mobile app version of vmapp.org
Login or Join
Welton855

: When using Mod_rewrite does google bot see the original url or the rewritten url? If i use the bellow code in my .htacess file would google bot (or any other search spiders) see the example.tumblr.com

@Welton855

Posted in: #Googlebot #Htaccess #ModRewrite

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 ^(.*)$ example.tumblr.com [R]
</IfModule>

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Welton855

2 Comments

Sorted by latest first Latest Oldest Best

 

@Cody1181609

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.

10% popularity Vote Up Vote Down


 

@Kevin317

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

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme