Jump to content

return requestURI without any params, HowTO?


Zerpex

Recommended Posts

Hi,

 

I'm trying to make a header("Location: ");

 

where I want, the url I'm currently on, without any ?id=1 etc, so I get /category/editCategory/ instead of /category/editCategory/?id=1

 

How can I do that, when I do $_SERVER, sometimes I see one called $_SERVER['REQUEST_URL'] (yep, URL, not URI) - which does exactly what I want, but it's only sometimes I have it :S

 

Is there a nice way of doing it?

 

Best regards,

Lucas R.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.