Change Content on Page Depending on URL
Posted: Thu Jan 14, 2010 4:23 pm
Hey,
I'm pretty new to php (used to use coldfusion) and I am wanting to display different content on my website dependent on the URL.
I have for 4 URLs on my site that need to display different content within the page. It's a shopping cart system you see and I only get one 'skin' page for the whole of my site. So for example:
IF the URL is http://www.mysite.com DISPLAY this code ELSE display this code
IF the URL is http://www.mysite.com/page.php DISPLAY this code ELSE display this code
Think you catch my drift. Can this be done using PHP, I know its easily done in Coldfusion but my shopping cart isnt in coldfusion, Doh!
Thanks in advance for any helps,
Andy
I'm pretty new to php (used to use coldfusion) and I am wanting to display different content on my website dependent on the URL.
I have for 4 URLs on my site that need to display different content within the page. It's a shopping cart system you see and I only get one 'skin' page for the whole of my site. So for example:
IF the URL is http://www.mysite.com DISPLAY this code ELSE display this code
IF the URL is http://www.mysite.com/page.php DISPLAY this code ELSE display this code
Think you catch my drift. Can this be done using PHP, I know its easily done in Coldfusion but my shopping cart isnt in coldfusion, Doh!
Thanks in advance for any helps,
Andy