Para obtener una url asi:
mega.zz.vc/5468652057616c6b696e672044656164203578303120537562_760_4d42
Donde
5468652057616c6b696e672044656164203578303120537562 = $name
(Es texto "The Walking Dead 5x01 Sub" convertido a hexadecimal)
760 = $num (Esto lo deje sin convertir)
4d42 = $size (Es texto "MB" convertido a hexadecimal)
Puede comprobarlo aqui: Convert Hexadecimal To String Online
Y este para convertir el texto a hexadecimal:
Convert String To Hexadecimal Online
Solo agreguen esto en el htaccess
Insertar CODE, HTML o PHP:
RewriteEngine On
RewriteRule ^(\w+)_(\w+)_(\w+)?$ index.php.php?name=$1&num=$2&size=$3
Luego agreguen esto en cualquier parte de la pagina (index.php)
Insertar CODE, HTML o PHP:
<?php
function hexToStr($hex){
$string='';
for ($i=0; $i < strlen($hex)-1; $i+=2){
$string .= chr(hexdec($hex[$i].$hex[$i+1]));
}
return $string;
}
?>
Esto hara que pue puedan leer las variables en hexadecimal y convertilas en texto
Y la utilizan asi
<?php echo hexToStr($_GET["name"]); ?>
<?php echo hexToStr($_GET["size"]); ?>
Espero les sirva