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

Forums / General Discussions / Url Mapping Issue

Url Mapping Issue

6 posts, 0 answered
  1. Jesster
    Jesster avatar
    3 posts
    Registered:
    29 Apr 2011
    11 May 2011
    Link to this post
    Hey guys,

    I'm attempting to use the url mapping for the pages I would have created. However it seems that I can't have a query strings in them. So i can't have e.g. "http://www.google.com/test.aspx?=1234". I keep getting this error  One or more of the specified additional URLs are invalid.
    I'm not sure what to do simply because most, if not all of my pages that I'd like to map have id's in them. If possible can someone advise me as to how this can be rectified. Thanks guys!
  2. Pavel Iliev
    Pavel Iliev avatar
    140 posts
    Registered:
    18 Jul 2016
    17 May 2011
    Link to this post
    Hello Jesster,

    Are you trying to simulate redirects based on a legacy sitemap or to use the navigation control to show links to external pages?

    All the best,
    Pavel
    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
  3. Jeremy
    Jeremy avatar
    12 posts
    Registered:
    28 Feb 2007
    09 Nov 2011
    Link to this post
    We are trying to simulate redirects based on a legacy site that used a page named 'redir.aspx'. I created a page in Sitefinity named redir, but I am not allowed to put the alternate URL of 'redir.aspx' in the alternate url field - tells me invalid.  How can I do this?  I don't want to have to change every page that has this link on it...
  4. Pavel Iliev
    Pavel Iliev avatar
    140 posts
    Registered:
    18 Jul 2016
    10 Nov 2011
    Link to this post
    Hello Jeremy,

    Pages extensions are not supported by Sitefinity 4.x. There are 2 solutions - one is to use a url rewriter like urlrewriter.net or the other is through coding. Yet the 2nd option is in development (available only in 4.3) and I'd suggest using of a url rewriting module.

    Greetings,
    Pavel Iliev
    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
  5. Eugene
    Eugene avatar
    2 posts
    Registered:
    22 Jan 2007
    14 Nov 2011
    Link to this post
    Hi Pavel,

    Back before the 4.2.1733 release you could put extension with a URL in the Additional URLs box.

    I know because I have several pages set up like this already and they were redirecting fine.  Now unfortunately they are not redirecting.

    So what is in the 4.3 release that you mentioned as the 2nd option?




  6. Pavel Iliev
    Pavel Iliev avatar
    140 posts
    Registered:
    18 Jul 2016
    21 Nov 2011
    Link to this post
    Hello Jerome,

    The way you can do is this:

    App.WorkWith().Pages().LocatedIn(Fluent.Pages.PageLocation.Frontend).ForEach(p => p.Extension = ".aspx").SaveChanges();

    This code will set the .aspx extension to all your pages. Please, have in mind that this is for internal use . It will be safer if you backup your database

    Regards,
    Pavel Iliev
    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 posts, 0 answered