Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

rewriting rule to include a GET variable 1

Status
Not open for further replies.

nachenko

Programmer
Jun 7, 2007
1
ES
Hi everyone.

I'm developing a site (PHP + MySQL) in a terribly limited server. For reasons too long to explain, I need to read a user cookie and given some conditions, include cookie variable in the URL. That is:

1 - read cookie
2 - then rewrite URL to include this variable.

I don't even know if you can read a user's cookie using a .htaccess file, then use this value to rewrite the URL. Then there is the other problem: write the Rewriting rule.

And believe me, this has to be done this way, the URL must be rewritten before starting PHP execution. The server belongs to a public institution and all decisions are taken by bureaucrats. This is the only solution I can apply given the technical limitations and bureaucratic restrictions I've been imposed.

Please help.

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top