how do you guys accomplish this

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Danny

    how do you guys accomplish this

    I am tyring to find the site, but I am seeing more and more web sites with
    the really long html names and also nicely broken down by category that sits
    on a related directory and/or subdomain on the server.

    so like:
    a white kenmore gasrange would be:


    and the model number and title combined into one page name.
    are these page names generated before hand? wow!!

    How is this done?
    I assume for starters it is on a windows system with asp obiously, but how
    to accomplish.


  • Curt_C [MVP]

    #2
    Re: how do you guys accomplish this

    look on www.aspfaq.com for info on a Custom 404 Page.
    That's what I do to get short URLs

    --
    Curt Christianson
    Owner/Lead Developer, DF-Software
    Site: http://www.Darkfalz.com
    Blog: http://blog.Darkfalz.com


    "Danny" <dannywork5@hot mail.com> wrote in message
    news:P_Pnc.1172 7$CC4.5784298@n ews4.srv.hcvlny .cv.net...[color=blue]
    > I am tyring to find the site, but I am seeing more and more web sites with
    > the really long html names and also nicely broken down by category that[/color]
    sits[color=blue]
    > on a related directory and/or subdomain on the server.
    >
    > so like:
    > a white kenmore gasrange would be:
    >[/color]
    http://forthekitchen.someappliancest...ite-fridge.asp[color=blue]
    >
    > and the model number and title combined into one page name.
    > are these page names generated before hand? wow!!
    >
    > How is this done?
    > I assume for starters it is on a windows system with asp obiously, but how
    > to accomplish.
    >
    >[/color]


    Comment

    • Aaron Bertrand - MVP

      #3
      Re: how do you guys accomplish this

      In addition to using a 404 page and parse the URL to determine what product
      to display dynamically, the pages COULD be created beforehand to generate
      static content (much less taxing on a system). Whenever the admin interface
      makes a change to a particular product, it updates the "static" page --
      which only needs to be static between updates.

      I use this technique for my RSS XML feed, and also toyed with generating
      static .HTM files (one for each article).

      --
      Aaron Bertrand
      SQL Server MVP





      "Danny" <dannywork5@hot mail.com> wrote in message
      news:P_Pnc.1172 7$CC4.5784298@n ews4.srv.hcvlny .cv.net...[color=blue]
      > I am tyring to find the site, but I am seeing more and more web sites with
      > the really long html names and also nicely broken down by category that[/color]
      sits[color=blue]
      > on a related directory and/or subdomain on the server.
      >
      > so like:
      > a white kenmore gasrange would be:
      >[/color]
      http://forthekitchen.someappliancest...ite-fridge.asp[color=blue]
      >
      > and the model number and title combined into one page name.
      > are these page names generated before hand? wow!!
      >
      > How is this done?
      > I assume for starters it is on a windows system with asp obiously, but how
      > to accomplish.
      >
      >[/color]


      Comment

      • Bob Barrows [MVP]

        #4
        Re: how do you guys accomplish this

        Danny wrote:[color=blue]
        > I am tyring to find the site, but I am seeing more and more web sites
        > with
        > the really long html names and also nicely broken down by category
        > that sits
        > on a related directory and/or subdomain on the server.
        >
        > so like:
        > a white kenmore gasrange would be:
        >[/color]
        http://forthekitchen.someappliancest...ite-fridge.asp[color=blue]
        >
        > and the model number and title combined into one page name.
        > are these page names generated before hand? wow!!
        >
        > How is this done?
        > I assume for starters it is on a windows system with asp obiously,
        > but how
        > to accomplish.[/color]

        I do not think these names are being generated on the fly. I think the
        designers actually created a separate asp page for each of their products,
        using the naming convention to identify them.

        I suppose the possibility exists that they generated the names of pages that
        do not exist and used a custom 404 page to parse the names to cause the
        resulting page to display the product described, but I doubt it.

        Bob Barrows
        --
        Microsoft MVP -- ASP/ASP.NET
        Please reply to the newsgroup. The email account listed in my From
        header is my spam trap, so I don't check it very often. You will get a
        quicker response by posting to the newsgroup.


        Comment

        • Aaron Bertrand - MVP

          #5
          Re: how do you guys accomplish this

          > I do not think these names are being generated on the fly. I think the[color=blue]
          > designers actually created a separate asp page for each of their products,
          > using the naming convention to identify them.[/color]

          I think it's plausible that it was a combination of manual/on the fly.
          Consider a normalized schema where each unique product has exactly one row
          in a view, it would be trivial to write a "page generator" that created a
          page (folder/page name based on specific properties) with the page content
          from the view; one page per product.

          An admin page could be constructed to either (a) rebuild the entire set of
          pages, or (b) take a specific product ID and rebuild just that one.
          Sometime I should show you the ASPFAQ admin interface; one of the tasks the
          final save page has when updating/adding an article is that the RSS XML file
          is rebuilt (rather than have that page generated on the fly when it is
          requested, it is static until it needs to change). At one point it also
          built a static HTML file for just that article, but I ditched that feature.

          This wouldn't necessarily have to be done by ASP either, but this is useful
          if you want to handle the updates on demand along with the other updates.
          If you want to schedule it (e.g. build all the pages once a day,
          incorporating the day's changes), you could use something else (e.g. C#).


          Comment

          Working...