Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    151
    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:
    151
    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,664
    Likes Received:
    69
    Trophy Points:
    203
    Location:
    SLC
    cPanel Access Level:
    DataCenter Provider
    Dont have any problem just edit your .htaccess manually


    Redirect permanent / http://www.msn.com/?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. bpoynot

    bpoynot Registered

    Joined:
    Apr 20, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    151
    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:
    166
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. brentp

    brentp Well-Known Member

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

    Report it there.

    Regards,
    Brent
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  7. wookiee

    wookiee Well-Known Member

    Joined:
    Feb 28, 2005
    Messages:
    48
    Likes Received:
    0
    Trophy Points:
    156
    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:
    168
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice