Example #1
0
 public void SaveRedirect(string oldUrl, string newUrl, string skipWildCardAppend)
 {
     Logger.Debug("Adding redirect: '{0}' -> '{1}'", oldUrl, newUrl);
     // Get hold of the datastore
     _redirectsService.AddOrUpdate(new CustomRedirect(oldUrl.Trim(), newUrl.Trim(), skipWildCardAppend == null ? false : true));
     CustomRedirectHandler.ClearCache();
 }
Example #2
0
 public void SaveCustomRedirect(CustomRedirect currentCustomRedirect)
 {
     _redirectsService.AddOrUpdate(currentCustomRedirect);
 }