Trouble with re-direct - my '?' is becoming %3F

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zander213
Forum Newbie
Posts: 13
Joined: Mon Aug 23, 2004 1:46 pm

Trouble with re-direct - my '?' is becoming %3F

Post by zander213 »

Hello,

Yesterday I set up a bunch of re-directs using a basic c-panel interface, and everything worked smoothly. I am going form a basic .html file to a dynamic .php? file.

Today - I returned to add more re-directs, and while doing the EXACT same types or re-directs I am not getting errors as my '?' are being turned into '%3F' in the re-directed string.

I am so confused, and I have not been able to re-create the successful re-directs I did yesterday. Weird.

Any ideas?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

What type of redirect? A php header, html meta-refresh or apache mod rewrite?
zander213
Forum Newbie
Posts: 13
Joined: Mon Aug 23, 2004 1:46 pm

Post by zander213 »

I think it's an Apache re-write, but im not certain... It is the basic re-direct tool that I am using through my c-panel back end. And it is working with simple pages, but now it is changing all of my ? to %3f... and my | to %7c ...

Here is the back of the actual script (first one is what is really re-directing to, and second one is what is should be)

domain.com/page.php%3fcategory=Shoes%7cMens/mens_timberland_shoes.htmlbrand=Timberland

domain.com/page?category=Shoes|Mens&brand=Timberland

Does this look like a bug in the tool I am using? Why is it inserting the original url into the script like that?

Any help would be GREATLY appreciated.

Thanks again
rehfeld
Forum Regular
Posts: 741
Joined: Mon Oct 18, 2004 8:14 pm

Post by rehfeld »

it looks the like utility in cpanel is urlencoding whatever you enter.

i dont know why its adding .php though

its prob not a bug, its prob just trying to make sure it works correct for newbies.

w/ automation usually comes limitation though


if you can use htccess thats what i would do.
Post Reply