if else based on url to print certain info
Posted: Sat Jul 04, 2009 7:37 am
I need help on php if else based on url to print certain information for meta tag info and title.
example if url contain only "sitename.com/?do=index" or "?do=index", it should print for <title> "default title", meta tag description will be "default meta tag description".
if the url contain "domain.com/?do=detailpage&" or "?do=detailpage", it should print "<title> not default title</tile>", meta tag description will be "not default meta tag description".
can anyone please help me?
thanks,
lioney
example if url contain only "sitename.com/?do=index" or "?do=index", it should print for <title> "default title", meta tag description will be "default meta tag description".
if the url contain "domain.com/?do=detailpage&" or "?do=detailpage", it should print "<title> not default title</tile>", meta tag description will be "not default meta tag description".
can anyone please help me?
thanks,
lioney