Results 1 to 6 of 6

Thread: Unique URL (SEO) over two templates.

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Unique URL (SEO) over two templates.

    Hi,

    I have a content page with show part content of an article with a friendly URL address (for example):-

    http://test.site.co.uk/my-article.aspx

    The article titles are unique in the database. My problem is I want to show it on template A which only shows a small amount of it with a hyperlink to show the full article. If I put the same url in it takes it to the same location:-

    http://test.site.co.uk/my-article.aspx

    Is there a way of trapping the click of the hyperlink and setting some sort of parameter which I can pickup in my url rewrite routine. for example

    private sub hyperlink.click

    myparameter = "Template Name"

    Then in my url rewrite be able to see myparameter and say load the content with the full article template.

    I hope it makes some sort of sense.

    Thanks for any help,

    Jiggy!

  2. #2
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Unique URL (SEO) over two templates.

    Hello,

    Rather than "trap" the click of the Hyperlink, in the page load event of the template page, you can alter the NavigateUrl property of the Hyperlink to add the necessary parameter to the QueryString. Then, when the page reloads, you can inspect the QueryString, or perhaps a session variable depending on how your url re-write is working, take the necessary action.

    Gary

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: Unique URL (SEO) over two templates.

    Hi Gary,

    Thank you for a that. I didn't want to use querystrings because I believe they are not SEO friendly (maybe wrong). With regards to the session parameter I wasn't sure of how long they lastest and also how would I set the session parameter when I cannot detect the click event of a hyperlink. Basically I want to say load page x but with this template so in the rewrite url I could pick up on the template and use a different url to launch it.

    In the end I changed the design to show just small images / hyperlink / short description. This is a new webpage so has a different url. Then each of the hyperlinks has a unique title so they all end up with a unique friendly url.

    Thanks again,

    Roger

  4. #4
    PowerPoster gep13's Avatar
    Join Date
    Nov 2004
    Location
    The Granite City
    Posts
    21,963

    Re: Unique URL (SEO) over two templates.

    Hello,

    The length that a session variable remains available in an application is dependent on how the system is configured.

    Have a look here:

    http://msdn.microsoft.com/en-us/library/ms972429.aspx

    As for whether Query String parameters are SEO friendly, the answer to that is "it depends". Have a look at this article:

    http://blogs.msdn.com/b/carlosag/arc...o-toolkit.aspx

    Gary

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Aug 2006
    Posts
    1,806

    Re: Unique URL (SEO) over two templates.

    Cheers mate

  6. #6
    New Member
    Join Date
    Oct 2011
    Posts
    3

    Re: Unique URL (SEO) over two templates.

    Nice one and pretty cool..But i believe to Gep 13 and i also think that is not SEO friendly..But al in all you make a good work and two thumbs up for you..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width