mardi 28 avril 2015

Hide one of parameters in url

I have an url looked like this:

http://ift.tt/1bbogbL

And I have used the following rules in .htaccess to hide those parameters

#RewriteRule .* https://www.%{SERVER_NAME}%{REQUEST_URI} [R,L]
RewriteRule ^([^/\.]+)/([^/\.]+) /page.php?id=$1

and i got this:

http://ift.tt/1bbogbN

How can I have an url looks like:

http://ift.tt/1zaDE3t ??

my php codes are:

echo '<li class="link actived"><a href="http://' . $_SERVER['HTTP_HOST'] . '/' . $row['ID'] . '/' . $secure->toAscii($row['TYPE']) . '">' . $row['TYPE'] . '</a></li>';

Best!!

Aucun commentaire:

Enregistrer un commentaire