Announcement

Collapse
No announcement yet.

Help with redirect in NTFD

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Help with redirect in NTFD

    I have about 8 old links from this old page linking to my site http://vendors.selfstorage.com/trade...=802&cat=doors to redirect - tried writing htaccess but did not work. I decided to try it in NTFD and put this in first

    Code:
    <mvt:if expr="g.Category_Code EQ 'cat-flooring'">
            <mvt:item name="toolkit" param="sassign|oldurl|http://www.allfrom1supply.com/merchant2/merchant.mvc?Screen=CTGY&Store_Code=AF1S&Category_Code=flr-1" /> 
        <mvt:item name="toolkit" param="headeroutput|Status|301 Moved Permanently" />
        <mvt:item name="toolkit" param="vheaderoutput|Location|g.oldurl" />
    <mvt:exit>
    </mvt:if>
    <mvt:if expr="g.Category_Code EQ 'cat-bollard'">
            <mvt:item name="toolkit" param="sassign|oldurl|http://www.allfrom1supply.com/merchant2/merchant.mvc?Screen=CTGY&Store_Code=AF1S&Category_Code=cat-bollard" /> 
        <mvt:item name="toolkit" param="headeroutput|Status|301 Moved Permanently" />
        <mvt:item name="toolkit" param="vheaderoutput|Location|g.oldurl" />
    <mvt:exit>
    </mvt:if>
    The first if statement will redirect, but none of the others will. Help appreciated.

    #2
    Re: Help with redirect in NTFD

    I don't think the exit is needed. Try it without it.

    Comment


      #3
      Re: Help with redirect in NTFD

      I tried but it fails. I also tried just one but only the first link works (flooring). If I just add one of the others they fail even if they are the only ones. The links on the old page are all pointing to http://store.allfrom1supply.com... domain and I know that some DNS entries Miva Merchant put in for us route those to http://www.allfrom1supply.com... We also have some short url stuff in htaccess they put in. I guess one of these might be the culprits? Otherwise everything else seems the same so not sure why only that one works no matter what.
      Last edited by habreu; 04-10-14, 12:53 PM.

      Comment


        #4
        Re: Help with redirect in NTFD

        try using else:if instead of another if:

        Code:
        <mvt:if expr="g.Category_Code EQ 'cat-flooring'">
                <mvt:item name="toolkit" param="sassign|oldurl|http://www.allfrom1supply.com/merchant2/merchant.mvc?Screen=CTGY&Store_Code=AF1S&Category_Code=flr-1" /> 
            <mvt:item name="toolkit" param="headeroutput|Status|301 Moved Permanently" />
            <mvt:item name="toolkit" param="vheaderoutput|Location|g.oldurl" />
        <mvt:elseif expr="g.Category_Code EQ 'cat-bollard'">
            <mvt:item name="toolkit" param="sassign|oldurl|http://www.allfrom1supply.com/merchant2/merchant.mvc?Screen=CTGY&Store_Code=AF1S&Category_Code=cat-bollard" /> 
            <mvt:item name="toolkit" param="headeroutput|Status|301 Moved Permanently" />
            <mvt:item name="toolkit" param="vheaderoutput|Location|g.oldurl" />
        </mvt:if>
        If that doesn't do it, you're probably right about "other suspects."

        Comment


          #5
          Re: Help with redirect in NTFD

          Gosh I am such a donkey. I got my new and old url's mixed up. The first one redirected because I correctly used the new url. Yeesh. I won't admit how long it took me to see that. Thanks for your response. It helped prod me in the right direction.
          Last edited by habreu; 04-10-14, 03:22 PM.

          Comment

          Working...
          X