remove index.php from url (http://domain.com/?dir=/etc )
Posted: Thu Nov 29, 2007 4:33 pm
hello everyone
i am trying to modify a directory indexing script and i would like to know if there is a way to 'remove' the /index.php?file= format type from a url so there is just /?file= (e.g. a question mark after a slash which automatically points to an index.php file.
i would like to do this without using a .htaccess url rewrite, i don't see the point of it, because i want to make my own from 'scratch'. therefor when i say 'remove' index.php from the url, i really mean how to code the script in such a way that the index.php is never shown in the url (or the title of a link on the page, etc.)
if so, can it be done for a php script of anyfilename (e.g. not just index.php)?
please help, thanks (i've looked everywhere on google and can't find anything...
)
i am trying to modify a directory indexing script and i would like to know if there is a way to 'remove' the /index.php?file= format type from a url so there is just /?file= (e.g. a question mark after a slash which automatically points to an index.php file.
i would like to do this without using a .htaccess url rewrite, i don't see the point of it, because i want to make my own from 'scratch'. therefor when i say 'remove' index.php from the url, i really mean how to code the script in such a way that the index.php is never shown in the url (or the title of a link on the page, etc.)
if so, can it be done for a php script of anyfilename (e.g. not just index.php)?
please help, thanks (i've looked everywhere on google and can't find anything...