Jump to content

Links Structure


manalnor

Recommended Posts

Hello dear friends,

 

Let say we have

 

$to = "gigi";

 

then we have link like this

 

mysite.com/file.php?id=$1

 

We can change it to new form by add rule at .htaccess codes

 

RewriteRule -(.*)\.htm file.php?id=$1

 

So that the link be like this

 

mysite.com/$to-$id.htm

 

 

it will works , Now what if i want to make the link like this

 

mysite.com/$id/$to.htm

 

what will be the .htaccess code in this way ???

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/228646-links-structure/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.