Superian Posted February 19, 2008 Share Posted February 19, 2008 I have come across the following URL addresses in many different site, so I was wondering are the two similar or the same? Both are PHP Sites! Notice the forward slash before the question mark! /?state=logout Are the two addresses doing the same thing? If not, how are the two different? page.php?state=logout Quote Link to comment https://forums.phpfreaks.com/topic/91999-url-question/ Share on other sites More sharing options...
Psycho Posted February 20, 2008 Share Posted February 20, 2008 Yes, they are doing the same thing. In the first example, the URL has specified the directory, but not the file, so the web server will attempt to load the "default" file in that directory based upon the default list. Usually something like: index.php, default.php, index.htm, etc. So the first one is actually referring to something like: index.php?state=logout The second example has identified the file (page.php) in addition to the parameters Quote Link to comment https://forums.phpfreaks.com/topic/91999-url-question/#findComment-471251 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.