somewon Posted October 28, 2008 Share Posted October 28, 2008 So, I have a script that calls an image, like http://website.com/view.php?type=clowns&name=bozo&pic=1 I had figured this out (I'm sure it's probably clunky, but it works): RewriteRule ^image/([^/]*)/([^/]*)/([^/]*) view.php?type=$1&name=$2&pic=$3 [PT] which works as http://website.com/image/clowns/bozo/1/ but I'd rather have it as http://website.com/clowns/bozo/image/1/ How would I do something like this? Any help is verrrrry appreciated! Link to comment https://forums.phpfreaks.com/topic/130361-im-not-sure-how-to-do-this-particular-mod_rewrite/ Share on other sites More sharing options...
rhodesa Posted October 28, 2008 Share Posted October 28, 2008 not tested, but should just be: RewriteRule ^([^/]*)/([^/]*)/image/([^/]*) view.php?type=$1&name=$2&pic=$3 [PT] Link to comment https://forums.phpfreaks.com/topic/130361-im-not-sure-how-to-do-this-particular-mod_rewrite/#findComment-676532 Share on other sites More sharing options...
somewon Posted October 28, 2008 Author Share Posted October 28, 2008 Okay, that works. Thanks. =D Link to comment https://forums.phpfreaks.com/topic/130361-im-not-sure-how-to-do-this-particular-mod_rewrite/#findComment-676635 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.