Jump to content

Apache or htaccess url decode?


Jabop

Recommended Posts

Here is my problem:

 

I am passing the url below through a script for processing.

 

http://localhost/test.php%3Fid%3Dfileidgoeshere

 

When I go to the url with the urlencoding enabled, I get this error:

 

Forbidden

You don't have permission to access /test.php?id=fileidgoeshere on this server.

 

However, when I go directly to http://localhost/test.php?id=fileidgoeshere, I get the result that I want. Thing is, I need to have the original link to this script encoded, but my server is denying its view like that.

 

How would I enable the server to decode those encoded urls into their actual url?

I have been searching all night for the resolution to this problem, but with no luck. Any help would be greatly appreciated.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.