The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Problems with Redirects and URL's that contain a ?

Discussion in 'General Discussion' started by bpoynot, Apr 20, 2005.

  1. bpoynot

    bpoynot Registered

    Joined:
    Apr 20, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    I know that redirects that involve a URL that contains a "?" is a problem. This character gets translated as "%3f". Has there been an update/fix for this? Are there other characters that are also incorrectly translated? Help!
     
  2. bpoynot

    bpoynot Registered

    Joined:
    Apr 20, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    C'mon guys. Somebody must have seen this before.

    I can't have been the only person with this problem. Can anyone help me?
    Thanks.
     
  3. dalem

    dalem Well-Known Member
    PartnerNOC

    Joined:
    Oct 24, 2003
    Messages:
    2,577
    Likes Received:
    40
    Trophy Points:
    48
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Dont have any problem just edit your .htaccess manually


    Redirect permanent / http://www.msn.com/?
     
  4. bpoynot

    bpoynot Registered

    Joined:
    Apr 20, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Redirects Problem

    No, its the "?" in the old address that get translated incorrectly, not the new address.
     
  5. RAIS2

    RAIS2 Well-Known Member

    Joined:
    Jul 16, 2004
    Messages:
    186
    Likes Received:
    0
    Trophy Points:
    16
    How are you re-directing?

    There are a few ways to redirect. An html file, .htaccess, are among a couple ways

    Are you trying to redirect using the variables after the `?` ?

    Example: When a user visits http://www.domain.com/file.php?var=true&var2=another to be redirected to http://www.newdomain.com/diff_file.php?var=true&var2=another
     
  6. brentp

    brentp Well-Known Member

    Joined:
    Mar 11, 2004
    Messages:
    324
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Ayr, North Queensland, Australia
    bugzilla.cpanel.net

    Report it there.

    Regards,
    Brent
     
  7. wookiee

    wookiee Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Las Vegas
    From another thread by ualymerej

    when i looked at my .htaccess file, i noticed that my older redirects were coded a little bit differently than my newer ones. The newer ones were the ones that had problems with replacing a question mark with %3f. The older ones said "Redirect temp /link url" but the newer ones said "RedirectMatch temp ^/link$ url" so i just deleted the "Match", the "^", and the "$" and now my redirects seem to work fine. Is there a fix so that the new redirects wont have all that extra coding?



    It works for me as long as the original address is like http://***.com/ if it's http://***.com/anythinghere then the anythinghere is added to the redirected address

    eg
    http://tour.met-art.com/index.htm?CA=901313-0000&PA=406784anythinghere
     
    #7 wookiee, Aug 8, 2005
    Last edited: Aug 8, 2005
  8. shashank

    shashank Well-Known Member
    PartnerNOC

    Joined:
    Apr 12, 2003
    Messages:
    159
    Likes Received:
    1
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    I guess cpanel supports only folder to folder redirects. For special URLs, you need to set them up manually in .htaccess using mod_rewrite. You can check http://forum.modrewrite.com/ for more help on that.
     
Loading...

Share This Page