mardi 28 avril 2015

Hide one of parameters in url

I have an url looked like this:

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:

How can I have an url looks like: ??

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>';


Aucun commentaire:

Enregistrer un commentaire