Forums

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity: General Discussions > url redirect

url redirect

  • JH avatar

    Posted on Feb 7, 2012 (permalink)

    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

    Reply

  • Posted on Feb 8, 2012 (permalink)

    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

    Reply

  • JH avatar

    Posted on Feb 8, 2012 (permalink)

    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

    Reply

  • Answer Jen Peleva Jen Peleva admin's avatar

    Posted on Feb 10, 2012 (permalink)

    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

    Reply

Skip Navigation LinksHome / Developer Network / Forums / Sitefinity: General Discussions > url redirect