Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • bob 19 posts 39 karma points
    Jul 16, 2012 @ 05:06
    bob
    0

    URL redirect package with query params

    Hi,

    I've been looking for some form of URL redirect package. The one's available don't seem to quite do what I need. So before I go and begin developing something from scratch, I thought it'd be best to ask in case I'm missing something.

    I want to be able to setup a redirect from a vanity url, e.g. /niceurl

    to a page in the (Umbraco) website including some query parameters in the destination url, e.g. /redirected/landing-page?name1=value1&name2=value2

    The redirect packages available don't allow for having query parameters on the url directed to. Is there some package that does?

    Cheers

  • Justin Moore 41 posts 100 karma points
    Jul 16, 2012 @ 06:06
    Justin Moore
    0

    Can you not achieve what you are trying to do in /config/urlrewriting.config ?

    It's not a package it's part of the core

    eg. to map /something/region/5/ to /something?region=5

    <add name="regionJobsRewrite" virtualUrl="^~/something/region/(.[0-9]*)/" rewriteUrlParameter="ExcludeFromClientQueryString" destinationUrl="~/something?region=$1" ignoreCase="true" />

  • bob 19 posts 39 karma points
    Jul 16, 2012 @ 08:26
    bob
    0

    Hi,

    Thanks for taking time to reply.

    Unfotunately this won't work for me for a couple of reasons:

    1. I really need it to be a redirect because I need the query parameters available on the client (accessible from client JavaScript). With url rewriting that won't happen.

    2. I really want this to be done from within Umbraco so that web admins (who are not developers) can setup such a redirect (i.e. without me having to edit a config file).

    Cheers

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 16, 2012 @ 08:28
    Fuji Kusaka
    0

    Hi Bob,

    May be those threat might help you Permanent Redirection or Cultiv.nl.  I followed Cultiv.nl to get my redirection issues solved.

    //fuji

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 16, 2012 @ 08:31
    Fuji Kusaka
    0

    @Bob : Sorry i was replying to your threat at same time you responded !!

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 16, 2012 @ 08:39
    Fuji Kusaka
    0

    You might consider using the URLPicker in uComponents.

    //fuji

  • bob 19 posts 39 karma points
    Jul 16, 2012 @ 08:42
    bob
    0

    Hi Fuji,

    Thanks for the reply.

    I did see the Permanent Redirect package and from what I could tell it's not going to give me what I'm after especially since they use a Content Picker data type, I don't think it will allow me to set query parameters for the destination URL? Further, the page that I want to redirect from (/niceurl in my original example) doesn't exist in the site. I gather that the way it works (similar to umbracoRedirect) is that you set a property on the page you want to be redirected? I'll install and attempt it, I did try the 301 URL Tracker package and could not achieve my desired outcome with that.

    Cheers

  • Fuji Kusaka 2203 posts 4220 karma points
    Jul 16, 2012 @ 09:57
    Fuji Kusaka
    0

    Hi Bob, 

    If am not mistaken what you are trying to achieve is redirect a page to a specific url outside of you page. The Admin will type the Url from the backEnd itself right?

     

  • bob 19 posts 39 karma points
    Jul 16, 2012 @ 11:13
    bob
    0

    Hi,

    Not quite. I have a page within the Umbraco CMS, say 

    /redirected/landing-page

    I want to be able to supply a potential visitor with a 'vanity url', say /niceurl, but when they visit that url I want them to be redirected to the above url with some additional query parameters (that are used for tracking):

     /redirected/landing-page?name1=value1&name2=value2

    And ideally, I want to be able to manage this from within the CMS backend.

    Cheers

  • bob 19 posts 39 karma points
    Jul 17, 2012 @ 02:09
    bob
    0

    Hi,

    An update, this package:

    http://our.umbraco.org/projects/backoffice-extensions/manage-url-redirects

    almost gives me what I'm after. It lacks the ability to set query parameters on the destination URL to which the user is redirected.

    Cheers

  • Jake Peters 4 posts 23 karma points
    Dec 17, 2013 @ 18:17
    Jake Peters
    0

    Bob,

    I am having the exact same problem. Did you ever find an answer?

  • Jake Peters 4 posts 23 karma points
    Dec 17, 2013 @ 18:37
    Jake Peters
    0

    Installed 301 URL Tracker package and all my problems were fixed.

    http://our.umbraco.org/projects/developer-tools/301-url-tracker

  • Richard Soeteman 4054 posts 12927 karma points MVP 2x
    Dec 18, 2013 @ 09:48
    Richard Soeteman
    0

    HI Bob,

    You might want to check out Url Tracker which allows to do this http://our.umbraco.org/projects/developer-tools/301-url-tracker If you need import functionality and maybe other SEO related functionality you might want to check out http://our.umbraco.org/projects/website-utilities/seo-checker

    Cheers,

    Richard

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies