+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / Schedule the AdvancedUrlRewriter?

Schedule the AdvancedUrlRewriter?

7 posts, 0 answered
  1. Stephen
    Stephen avatar
    6 posts
    Registered:
    14 Nov 2011
    09 Jan 2013
    Link to this post

    First off -- I'm not a programmer.  So I'm trying to conceive of solution -- so please forgive any technical misunderstandings I (hopefully won't) communicate. :) 

    Is there a way to use the AdvancedUrlRewriter to deploy on a schedule?  For example -- 

    (1) Pages are setup within Sitefinity and their URLs are chosen using some kind of naming standard.  For example, "page-January-3.aspx".

    (2) Every day the AdvancedUrlRewriter is dynamically redeployed with new rules looking for a match. If it finds one, it renames it according to the rule.  For example, the rewrite rule is to find pages with a url pattern that includes "-January-3.aspx" and rewrite removing the "-January-3" from the url. So in this example "page-January-3.aspx" would become "page.aspx".

    IF this is possible, here's a follow up question:

    (3) If another page.aspx already exists, can the AdvancedUrlRewriter then rewrite the url (or overwrite) the existing page?   So in my example, the pre-existing "page.aspx" would either be overwritten or renamed "page-old.aspx".  

    I realize this is a big-time hack to the system -- but I'm trying to figure out a short-term solution until Sitefinity builds some type of advanced scheduling feature beyond what it does now. 

    Thoughts?

  2. MB
    MB avatar
    302 posts
    Registered:
    09 Jan 2005
    10 Jan 2013 in reply to Stephen
    Link to this post

    I have no idea what you are trying to achieve, but perhaps you might want to look at the IIS URL Rewriter and it's PowerShell Cmd-lets - which you can obviously schedule to do 'stuff'.

  3. Stephen
    Stephen avatar
    6 posts
    Registered:
    14 Nov 2011
    10 Jan 2013 in reply to MB
    Link to this post

    Thanks!  

    I'm trying to allow a client to schedule page changes into the future.  The feature SF has built in doesn't allow for you to schedule multiple changes on the same page into the future.  Nor does it make previewing future updates very easy. 

    So I want to allow the client to add some kind of suffix to their URL related to the date they want the future updates rolled out.  Then have this little hack/widget I'm talking about rewrite URLs when the time comes. 

    That's a simplistic explanation of course -- but hopefully it communicates the idea better than I did before. :) 

  4. MB
    MB avatar
    302 posts
    Registered:
    09 Jan 2005
    11 Jan 2013 in reply to Stephen
    Link to this post

    URL rewriting is usually best managed outside of the web application, as it's more efficient.

    The IIS URL Rewrite/Redirect module is extremely powerful, flexible, and provides a PowerScript cmd-let for automating changes to the config.

    Of course, you will need to decide if this provides the correct solution to your needs.

  5. Pavel Benov
    Pavel Benov avatar
    341 posts
    Registered:
    14 Mar 2016
    14 Jan 2013
    Link to this post
    Hi Stephen,

    Unless you are using a 3.x version you won't be able to use the AdvancedUrlRewriter class since it is not available in the 4.0 and above versions. If you are using a 3.x version I would suggest to consider a possible migration to a more current version since from the 4.0+ releases we have introduced a scheduling system that will help you achieve this kind of scenario.

    As Mike suggested you can use the IIS URL Rewrite for which you can find more information here. Or you can implement your own scheduled task following the instructions from our documentation. You can also take a look at the following blog post where you can observe an example on how you can achieve that.

    Another way would be to use a custom workflow (note that this option is available only for Professional or Enterprise editions). You can find an example of this in this blog post.

    I hope this helps.

    Kind regards,
    Pavel Benov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  6. Stephen
    Stephen avatar
    6 posts
    Registered:
    14 Nov 2011
    14 Jan 2013 in reply to Pavel Benov
    Link to this post
    Pavel, 

    Are you -- or are there advanced Sitefinity developers -- available to consult with our team on this project?  We've been using SF for nearly 8 years and this is the first time we've hit a wall like this and I think we need someone with even deeper knowledge to help us. 

    Thank you so much for your consideration. :) 
  7. Pavel Benov
    Pavel Benov avatar
    341 posts
    Registered:
    14 Mar 2016
    17 Jan 2013
    Link to this post
    Hello Stephen,

    I have spoken with your account manager and she will contact you to discuss a possible meeting details.

    Regards,
    Pavel Benov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
7 posts, 0 answered