html-title

How can I change the <title> tag dynamically in php based on the URL values

I want the title page to be changed so that a crawler can see it. The URL is of the format: public.sample.com/account/Disney I load a standard, global header include file using require() That's where the current default tags are defined. IF the URL is public.sample.com/account/Disney, I would like the tag to read, instead: This is...

User controlled html title tags

What are the best practices for allowing a user to maintain the html title tags of all the major pages of his/her site? One way could be to allow the mapping of URLs to some text. For example, we have an app with the following (most complex) url format: http://lang.example.com/searchpage.zaf?a=foo&amp;b=bar&amp;c=RANDOM There are sev...

ASP.NET: Having common Page title in master page with each page adding page-specific title?

My master page looks like: <head runat="server"> <title> <asp:ContentPlaceHolder ID="PageTitlePlaceHolder" runat="server" /> </title> Content pages look like: <asp:Content ID="TitleContent1" ContentPlaceHolderID="PageTitlePlaceHolder" runat="Server"> My Page </asp:Content> This works by placing the content ...