Apache redirect failing

Discussion in 'Apache' started by javier_ccs, Dec 11, 2012.

  1. #1
    Hi,

    I'm trying to set up a redirect on apache with this entry:

    Redirectpermanent / domain.co.uk/csgs/Satellite?appID=op.dom.domcom&channel=COPCOM&cid=1237920959562&empr=Opcom&leng=en_GB&pagename=Opcom%2FPage%2FWC_ACOM_TemplateW2
    Code (markup):
    the URL called is
    [B]pp.some.domain.co.uk/[/B][I]APP_ENS/BtoChannelDriver.ssobto?dse_operationName=StartL2[/I]
    Code (markup):
    however each time I hit this url I get redirected to

    domain.co.uk/csgs/Satellite?appID=op.dom.domcom&channel=COPCOM&cid=1237920959562&empr=Opcom&leng=en_GB&pagename=Opcom%2FPage%2FWC_ACOM_TemplateW2[I]APP_ENS/BtoChannelDriver.ssobto?dse_operationName=StartL2[/I]
    Code (markup):
    so I guess it's adding the old URL to the new one at the end

    looking around, I've found that maybe a redirect match might do the trick so

    RedirectMatch 301 / domain.co.uk/csgs/Satellite?appID=op.dom.domcom&channel=COPCOM&cid=1237920959562&empr=Opcom&leng=en_GB&pagename=Opcom%2FPage%2FWC_ACOM_TemplateW2
    Code (markup):
    but then on my browser I get

    domain.co.uk/csgs/Satellite?appID=op.dom.domcom&channel=COPCOM[I]APP_ENS/BtoChannelDriver.ssobto?dse_operationName=StartL2[/I]cid=1237920959562[I]APP_ENS/BtoChannelDriver.ssobto?dse_operationName=StartL2[/I]empr=Opcom[I]APP_ENS/BtoChannelDriver.ssobto?dse_operationName=StartL2[/I]leng=en_GB[I]APP_ENS/BtoChannelDriver.ssobto?dse_operationName=StartL2[/I]pagename=Opcom%2FPage%2FWC_ACOM_TemplateW2
    Code (markup):
    which is the old parameters added to the URL on each &

    this is very strange, it should be redirecting
    pp.some.domain.co.uk/APP_ENS/BtoChannelDriver.ssobto?dse_operationName=StartL2
    Code (markup):
    to

    domain.co.uk/csgs/Satellite?appID=op.dom.domcom&channel=COPCOM&cid=1237920959562&empr=Opcom&leng=en_GB&pagename=Opcom%2FPage%2FWC_ACOM_TemplateW2
    Code (markup):
    can anyone give me a hand?
     
    javier_ccs, Dec 11, 2012 IP
  2. javier_ccs

    javier_ccs Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    for all of you may have the same issue

    i peep around forum and found this entry:

    RewriteEngine On
    RewriteRule ^/(.*) 
    domain.co.uk/csgs/Satellite?appID=op.dom.domcom&channel=COPCOM&cid=1237920959562&empr=Opcom&leng=en_GB&pagename=Opcom%2FPage%2FWC_ACOM_TemplateW2 [R]
    Code (markup):
    this works for me
     
    javier_ccs, Dec 11, 2012 IP