Jump to content

Mod Rewrite Passing Variables


Kaitosoto

Recommended Posts

If mod_rewrite cannot do this, then can you tell me what I can do to hide something like:

 

http://www.mysite.com/index.php?identity=8&linkstart=http://www.mysite.com/stuff/&linkend=03928423/thisimage39.jpg

to

http://www.mysite.com/index.php

 

The point of it is, to not allow users to know what identity=8 part as the variable for identity would be generated randomly by the script itself on index.php, which stores it using GET into a variable $identifynum. The point of it is, I do not want users to be abusing the script by typing in randomly identity=9, identity=10, etc in the browser to execute it with their number. by their own leisure to execute the script. I figured by using mod_rewrite, I would be able to hide the variables as I believe it is possible to hide them by rewriting the actual identity=8 to something like id=8 so that users would not be able to see any of the args in the browser line as they would only see the index.php, while still enabling me to use the $_GET from the url that it is being redirected to.

Link to comment
https://forums.phpfreaks.com/topic/38980-mod-rewrite-passing-variables/
Share on other sites

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.