Jump to content
Sign in to follow this  

passing in arguments with /

Recommended Posts

My guess is that they redirect any URL that doesn't link to an existing file or folder to the same PHP file (probably named index.php)


In that PHP file they read the value of $_SERVER['REQUEST_URI'], break it into the pieces they need (with explode(), for example) and use the information to determine which files and database records to show. (using include or require to load files, and those files load data from the database)


That's assuming they're using PHP. If it's not PHP then they'd have other ways to determine what's in the URL.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  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.

Sign in to follow this  

  • Create New...