1 Reply Latest reply: Oct 1, 2012 9:52 PM by handat RSS

    Redirect in SunOne 6.1

    962243
      Runnign 6.1 SP12 tryingto do a redirect and it doesn't seem to work. I think it has to do with the parameters being passed. Here's what I need:

      Current (working for all, but need to only redirect when the below happesn):
      NameTrans fn="redirect" from="/en/resources/RCResult" url="http://www.newserver.com/directory/res2.php" [R=301]

      Change to:
      NameTrans fn="redirect" from="/en/resources/RCResult.htm?type=Series&series=LBD&contentId=123&state=-99" url="http://www.newserver.com/directory/res2.php" [R=301]


      any thoughts?
        • 1. Re: Redirect in SunOne 6.1
          handat
          959240 wrote:
          Runnign 6.1 SP12 tryingto do a redirect and it doesn't seem to work. I think it has to do with the parameters being passed. Here's what I need:

          Current (working for all, but need to only redirect when the below happesn):
          NameTrans fn="redirect" from="/en/resources/RCResult" url="http://www.newserver.com/directory/res2.php" [R=301]

          Change to:
          NameTrans fn="redirect" from="/en/resources/RCResult.htm?type=Series&series=LBD&contentId=123&state=-99" url="http://www.newserver.com/directory/res2.php" [R=301]


          any thoughts?
          Your parameters aren't valid for the "from" option. You can only have "/en/resources/RCResult.htm". The rest needs to be evaluated seperately, possibly with the client function, but I haven't used 6.1 for too long so can't really remember the syntax. In 7.0, you can wrap it into a if else section.