Page 1 of 1

Link ID Changes !

Posted: Wed Feb 23, 2011 8:41 am
by egturnkey
Hello dear friends,

Let say we have

Code: Select all

$to = "gigi";
then we have link like this

Code: Select all

mysite.com/file.php?id=$1
with .htaccess code

Code: Select all

RewriteRule -(.*)\.html file.php?id=$1
we can make the link like this

Code: Select all

mysite.com/$to-$id.htm
it will works , Now what if i want to make the link like this

Code: Select all

mysite.com/$id/$to.html
what will be the .htaccess code in this way ???
thanks for help