Schedule the AdvancedUrlRewriter?

Posted by Community Admin on 03-Aug-2018 21:48

Schedule the AdvancedUrlRewriter?

All Replies

Posted by Community Admin on 09-Jan-2013 00:00

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?

Posted by Community Admin on 10-Jan-2013 00:00

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'.

Posted by Community Admin on 10-Jan-2013 00:00

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. :) 

Posted by Community Admin on 11-Jan-2013 00:00

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.

Posted by Community Admin on 14-Jan-2013 00:00

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

Posted by Community Admin on 14-Jan-2013 00:00

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. :) 

Posted by Community Admin on 17-Jan-2013 00:00

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

This thread is closed