Jump to content

[SOLVED] How to do site.com/script/parameters


pkedpker

Recommended Posts

I don't know how this process is called so I just gave example.

 

some sites have like

 

http://site.com/script/commands

 

commands i believe are just like $_GET[]'s but they exist without being defined there is no = sign or anything how is that done?

but they somehow people  can do it like that.

 

I know how to remove the .php from script making it just script..

 

and no commands isn't A FOLDER with a index.php thats what I thought too but it's not it

 

the /commands could be anything such as /dsafdsfsdf and it will still get passed as a parameter to script.php..

 

 

can someone shed some light on this process?

To elaborate on that a little, the real URL will be something like:

 

site.com?query=script/commands

 

So by using mod rewriting, when you access site.com/script/commands, behind the scenes it accesses the URL I gave you above, and gives back the data from that page.

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.