Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/04/2011, 09:44
gdecaceresr
 
Fecha de Ingreso: mayo-2009
Ubicación: Madrid
Mensajes: 100
Antigüedad: 15 años
Puntos: 3
robot.txt para httpS

Hola,
He intentado generar un robot.txt especifico para https.

Fichero: robot.https.txt

Y me gustaria que cuando alguien accediera a mi web por el httpS viera ese mismo y no el normal de http

He intentado generar un rewrite para reescribirlo y alguna cosa más pero no he sido capaz.

¿Alguien ha conseguido esto o sabe como hacerlo?

Un saludo.




LO RELIZADO:

.htaccess
Código Apache:
Ver original
  1. RewriteEngine On
  2. RewriteCond %{HTTPS} =on
  3. RewriteRule ^robots\.txt$ robots.https.txt [L]

robots.https.txt
Código:
User-agent: *
Disallow: /
Ya me contesto yo.... (perdons)

Código Apache:
Ver original
  1. Options +FollowSymlinks
  2. RewriteCond %{SERVER_PORT} ^443$
  3. RewriteRule ^robots.txt$ robots.https.txt

Última edición por j_aroche; 06/04/2011 a las 20:45 Razón: Estilos...