Vanilla 1.1.10 es un producto de Lussumo. Para más información: Documentación, Soporte.
redirect /tangas http://www.tangamandanga.com&aff=discount50
redirect /out/tangas http://www.tangamandanga.com&aff=discount50
:: el roce hace el dominio ::
Posted By: CorsoHay un plugin de Wordpress que hace eso (SEO Smart Links). Defines la keyword y te añade el enlace/s automáticamente como sea que lo configures.
Para hacerlo con .htaccess en principio sería algo así:redirect /tangas http://www.tangamandanga.com&aff=discount50
Y el enlace sería:
Cómprate untangasi quieres que te den madanga.
Teóricamente.
Pruébalo y dinos si te funciona. Si el /tangas coincide con una sección interna de tu web siempre puedes añadirle otra capa:redirect /out/tangas http://www.tangamandanga.com&aff=discount50
:: el roce hace el dominio ::
<script>
var lista_enlaces = [
{ 'id': '?uid=XXXXXXXXXXXX',
'dominio': 'dominio1.com'}
{ 'id': '?uid=XXXXXXXXXXXX',
'dominio': 'dominio2.com'}
];
$.each( lista_enlaces, function(key, value){
$('a[href*="'+value.dominio+'"]').each(function(){
var href = $(this).attr('href');
$(this).click(function(event){
event.preventDefault();
window.location = href+value.id;
})
});
});
</script>
<script>
$('body').on( 'click', 'a[href*="dominio1.com']', function() {
window.location = this.href+'?uid=XXXXXXXXXXXXX';
});
$('body').on( 'click', 'a[href*="dominio2.com']', function() {
window.location = this.href+'?uid=XXXXXXXXXXXXX';
});
$('body').on( 'click', 'a[href*="dominio3.com']', function() {
window.location = this.href+'?uid=XXXXXXXXXXXXX';
});
</script>
Posted By: JackburtonPor cierto, si en mi foro pusieran un enlace a una tienda con su referido pero pasado por Tinyurl o bitly por ejemplo, cómo se podría ver la url original?
corso@demene-local:~$ wget -S http://tinyurl.com/cucdlel
--2013-02-12 09:09:40-- http://tinyurl.com/cucdlel
Resolviendo tinyurl.com (tinyurl.com)... 195.66.135.250, 195.66.135.249
Conectando con tinyurl.com (tinyurl.com)[195.66.135.250]:80... conectado.
Petición HTTP enviada, esperando respuesta...
HTTP/1.1 301 Moved Permanently
Set-Cookie: tinyUUID=119f8ca06ce4028a2c8992fe; expires=Wed, 12-Feb-2014 08:09:41 GMT; path=/; domain=.tinyurl.com
Location: http://www.phpencode.org
X-tiny: cache 0.0010879039764404
Content-type: text/html
Content-Length: 0
Connection: close
Date: Tue, 12 Feb 2013 08:09:41 GMT
Server: TinyURL/1.6
corso@demene-local:~$ curl -i http://tinyurl.com/cucdlel | grep "Location"
Location: http://www.phpencode.org
<?php
$temp = explode( ':', exec( 'curl -i http://tinyurl.com/cucdlel | grep "Location"' ) );
$url_redireccion = $temp[1];
?>
function redireccion( $url ) {
$temp = explode( ':', exec( 'curl -i '.$url.'| grep "Location"' ) );
return( $temp[1] );
}
$url_redir = redireccion( 'http://tinyurl.com/cucdlel' );
1 a 9 de 9