Arlington Posted November 19, 2010 Share Posted November 19, 2010 I know how to take simple query params and do redirects as long as the URL is in the format of "http://<domain>/<page>.php?<param>=<value>". I just take the value and do a "header ( 'Location..." and redirect. I saw a really neat redirection done on an ASP.net site ("http://grapestories.com/w?854619" redirects to "http://www.grapestories.com/wine.asp?iWine=854619") and would love to do the same in PHP.... is there a way? Without specifying a page name, and a query param name, so I can keep the URL short. Thanks! Link to comment https://forums.phpfreaks.com/topic/219211-redirect-based-on-query-param-values/ Share on other sites More sharing options...
ohdang888 Posted November 19, 2010 Share Posted November 19, 2010 http://www.google.com/search?client=safari&rls=en&q=apache+pretty+urls&ie=UTF-8&oe=UTF-8#sclient=psy&hl=en&client=safari&rls=en&q=apache+clean+url+tutorial&aq=f&aqi=&aql=f&oq=&gs_rfai=&pbx=1&fp=3c39b015884aae73 Its called apache URL rewrites Link to comment https://forums.phpfreaks.com/topic/219211-redirect-based-on-query-param-values/#findComment-1136752 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.