Pass/Get URL Parameter Before URL Rewrite
-
I don’t exactly know how to word this question, as well as the title. I’m working on a musicians website. I am displaying the discography in a grid, and when someone clicks on the album artwork, they are sent to a page with more information (album name, track listing, release date, etc…). So what I want to do is, for example, I would like to rewrite
http://www.bandname.com/album.php?album=album-name&allbumID=12345and have it rewritten tohttp://www.bandname.com/album/album-namebut still be able to grab the albumID parameter. Now, since I am using iTunes’ Search API, I would like to somehow also pass the albums ID so I can then get the track information for just that album.Currently my rewrite is:
'^album/([^/]*)/?', 'index.php?pagename=album&album=$matches[1]'I tried adding
&albumID=$matches[2], but I can’t seem to figure out how to pass the albumID.Is this even possible? Any suggestions would be greatly appreciated. Thanks in advance.
The topic ‘Pass/Get URL Parameter Before URL Rewrite’ is closed to new replies.