Web Hosting Talk







View Full Version : http://www.domain.com/?op=new


Domenico
02-08-2001, 05:34 PM
Hello,

On some site I see this as a url;
http://www.domain.com/?op=new

It's a php3 script working but my question is how this can be parsed by php ?

I have the script but with the same url I get to see the directory content.

php4 is installed and working with other

Thank you

garethfowler
02-13-2001, 02:55 PM
Just add the following line to your .htaccess file:

<< Cut Here >>
DirectoryIndex somescript.php
<< Stop Cut >>

Where somescript.php is the script name.

Rgds.

Gareth C. Fowler

Rehan
02-13-2001, 04:10 PM
http://www.domain.com/?op=new goes to the default document in that directory and sends it the CGI parameters (op=new). So if the default document in that directory is index.php, then http://www.domain.com/?op=new is the same as http://www.domain.com/index.php?op=new

Gareth's suggestion allows you to change the default document for the directory in which you place the .htaccess file.