Jump to content

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.

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.