Problems with Redirects and URL's that contain a ?

bpoynot

Registered
Apr 20, 2005
3
0
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!
 

bpoynot

Registered
Apr 20, 2005
3
0
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.
 

bpoynot

Registered
Apr 20, 2005
3
0
151
Redirects Problem

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

RAIS2

Well-Known Member
Jul 16, 2004
186
0
166
bpoynot said:
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!
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
 

wookiee

Well-Known Member
Feb 28, 2005
48
0
156
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
 
Last edited: