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! Quote Link to comment 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] Quote Link to comment Share on other sites More sharing options...
somewon Posted October 28, 2008 Author Share Posted October 28, 2008 Okay, that works. Thanks. =D Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.