manalnor Posted February 23, 2011 Share Posted February 23, 2011 Hello dear friends, Let say we have $to = "gigi"; then we have link like this mysite.com/$to_$id.html with indeed .htaccess code RewriteRule -(.*)\.htm file.php?id=$1 it will works , Now what if i want to make the link like this mysite.com/$id/$to.html what will be the .htaccess code in this way ??? Link to comment https://forums.phpfreaks.com/topic/228597-link-id-changes/ Share on other sites More sharing options...
Adam Posted February 23, 2011 Share Posted February 23, 2011 This doesn't really add up. The rewrite rule suggests you're using a hyphen, instead of an underscore? Also matching htm extension, not html. Link to comment https://forums.phpfreaks.com/topic/228597-link-id-changes/#findComment-1178742 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.