Copied to clipboard

Flag this post as spam?

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


  • Chloe 2 posts 22 karma points
    Oct 13, 2015 @ 14:54
    Chloe
    0

    Help redirection 301 from multiple custom URL to one simple URL

    Hi,

    I need help with 301 redirection.

    I have a product with multiple presentation page(i.e. "the experience", "configure", "photo gallery"). On each of those pages, I have a call-to-action button "buy now". When clicked, the visitor go to a form. it's the same "buy now" form on each on the product page.

    The xlst code behind the call-to-action button is this:

    <xsl:attribute name="href">
    
    <xsl:choose>
    
    <xsl:when test="Exslt.ExsltStrings:lowercase($vehicleTypeName) = 'myproductname'">
    <xsl:value-of select="umbraco.library:NiceUrl($buyNowPageId)" />?type=0&amp;url=<xsl:value-of select="umbraco.library:NiceUrl($currentPage/@id)"/>
    
    
    </xsl:when>
    <xsl:otherwise>
    </xsl:otherwise>
    </xsl:choose>
    

    Now, my form is on another domain name. I would like to redirect all the call-to-action "buy now" to another url who simply finish by "/order-myproductname".

    Can you help me, please?

  • Chriztian Steinmeier 2798 posts 8787 karma points MVP 7x admin c-trib
    Oct 16, 2015 @ 15:56
    Chriztian Steinmeier
    0

    Hi Chloe,

    Could you elaborate a little?

    E.g.: Do you need to rewrite the XSLT for the button to always go to that new simple URL, or do you need help creating 301 redirects for the multiple generated URLs to go to the new simple URL?

    /Chriztian

Please Sign in or register to post replies

Write your reply to:

Draft