what i mean is that if you download any common directory indexer out there (e.g. PHP AutoIndexer) you will find that if you look in the addressbar as you browse directories, the url is always
http://localhost/AutoIndex/index.php?dir=.
Also, if you look on forums or other things, there is usually in the url, the name index.php at the end of it, esp. when you are looking at a particular item, where some variable would need to be taken from the url e.g. /index.php?download=2 for example.
the truth is i just want to know how on some sites they are able to allow a user to click on links on the site that have the index.php removed, such as
http://localhost/?dir=/myfiles/. The only example of type of site that makes extensive use of a file called 'index.php' is a directory indexer, it's all i can think of to make it clear what i want to do! Take note on how there is no index.php needed in the previous url there.
now i know that this address is the same as saying
http://localhost/index.php?dir=/myfiles/. Obviously it would depend on how the script is written on what gets passed to the index.php file, so it may say something other than 'dir' after it, i'm just giving an example in which case the index.php text appears in the url.
what i want to do is for someone to explain to me how a script can be written so that all my urls that point to
Code: Select all
http://localhost/index.php?variable_here
can be shown as
. In other words i do not need or want to show index.php at the end of the url. It just looks neater in my opinion. I'm also curious on how to do it because all I come across are scripts that seem to point to
$_SERVER[PHP_SELF] (or whatever it is).
hope you can understand me!
