More in this section

Forums / General Discussions / url redirect

url redirect

4 posts, 1 answered
  1. JH
    JH avatar
    33 posts
    Registered:
    24 Nov 2010
    08 Feb 2012
    Link to this post
    Hi,

    if user enter the site with http://mysite.com
    I need to redirect from code-behind to http://mysite.com/var/sample

    I noticed there is a default.aspx at the root of the project.  should I put response.redirect code there?  if yes, please provide sample

    Thanks,
    JH
  2. Markus
    Markus avatar
    2763 posts
    Registered:
    25 Nov 2005
    08 Feb 2012
    Link to this post
    Dear JH is your goal to have different landing pages for www.mysite.com and mysite.com?
    If not could you not simply set /var/sample as homepage?

    Markus
  3. JH
    JH avatar
    33 posts
    Registered:
    24 Nov 2010
    08 Feb 2012
    Link to this post
    Hi Markus,

    Thank you for your response.

    My goal is to redirect to a different landing page(there are about 100 landing pages) and this landing page is calculating at run-time.
    example:  when user hit http://www.mysite.com
    from code-behind(or jquery), find out geolocation(this part is already done) by remote_address then
    redirect to http://www.mysite.com/{city}/landingpage

    Thanks,
    JH
  4. Jen Peleva
    Jen Peleva avatar
    568 posts
    Registered:
    10 Nov 2016
    10 Feb 2012
    Link to this post
    Hi JH,

    We've responded in your support ticket already.

    Kind regards,
    Jen Peleva
    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
    Answered
4 posts, 1 answered