Dynamically change page content based on URL parameter?
Posted
by
volume one
on Pro Webmasters
See other posts from Pro Webmasters
or by volume one
Published on 2013-06-25T12:56:28Z
Indexed on
2013/06/25
16:29 UTC
Read the original article
Hit count: 196
The title of my question seems simple but here is an example of what I want to do:
http://www.mayoclinic.com/health/infant-jaundice/DS00107
What happens on that page is whenever you click on a link to go a section (e.g. "Symptoms") in the article on "Infant Jaundice", it provides a URL parameter like this:
http://www.mayoclinic.com/health/infant-jaundice/DS00107/DSECTION=symptoms
As the DESCTION
parameter changes, you get different content on the same page DS00107
. The content changes as well as <meta keywords>
.
Can someone please tell me how this is achieved? I was thinking it was an if/else situation programmed into the page itself to display different properties depending on the URL parameter.
Any help or suggestions are very much appreciated and my thanks to you for reading my question.
© Pro Webmasters or respective owner