as i learn more and more about PHP, ive decided to give myself more practice with PHP by redoing my entire website with clean URLs (among many other changes)
my questions are this:
1) what is the best way to do this, assuming i want to achieve an affect like this (http://site.com/argument1/argument2/arg ... hepattern/
should i jsut get the global URL variable and then explode it by '/' or is there another, better way to do this?
2) as you can imagine, a url like this (site.com/argument1/arg2/) will create problems because the webserver will actually look for a folder (within the web root) called argument1. i do not want this to happen... i want *all* requests to be sent to ONE file (the index.php) that sits in my webroot. i assume this can be done with a glabal mod_rewrite rule... but i am unsure as how to best accomplish this... any hints/ideas/examples you can point me to?
this is just a genral question, and i dont think it warrens its own thread.
How can i prevent a browser from viewing the contense of a directory, but still allow it to access the directory for any files it may need. EG: my login page is served from its own directory, but it also has a few included 'minipages' that must be in the same directory as well as some images... as of now, it is possible to view the contense of the directory that is serving the login page; this meaning that the user can see the login.php as well as the other 'included' pages and the images that are used by the login.php. how can i make it so that the users browser can access the images, but not do a directory view? i am sure its possible (probably useing a .htaccess file, am i right?) but i do not know how to do this so if you could show me a tutorial or site devoted to such things (a specific apache configuration forum perhaps...?) i would greatly appreciate it!
thanks for your time.