hosted by liquidweb

Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology :

Forum Jump

Reply Post New Thread In Hosting Security and Technology Subscription
Send news tip View All Posts Thread Tools Search this Thread Display Modes
Premium Member
Join Date: Dec 2000
Location: Lowlands
Posts: 717

On some site I see this as a url;

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

Sponsored Links
Join Date: Feb 2001
Location: Coventry, UK
Posts: 23
Just add the following line to your .htaccess file:

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

Where somescript.php is the script name.


Gareth C. Fowler

Web Hosting Guru
Join Date: Oct 2000
Posts: 279 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 is the same as

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

Sponsored Links

Related posts from
Title Type Date Posted
Rackspace Wins Domain Dispute, Australian Forced to Hand Over Web Hosting News 2015-01-09 16:14:05
UK Police Continue Crackdown on Pirated Content with Domain Name Suspension Web Hosting News 2014-05-26 12:30:38
Web Hosting Sales and Promos Roundup - February 7, 2014 Web Hosting News 2014-05-23 15:42:29
Nigeria Internet Registration Association Offers Free ccTLDs to Encourage .ng Domain Adoption Web Hosting News 2014-01-02 14:46:24
Office 365 Integrates GoDaddy Domain Name Registration Web Hosting News 2013-10-09 13:18:05

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Log in with your username and password

Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Web Hosting News:
WHT Membership
WHT Membership



Welcome to

Create your username to jump into the discussion! is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.

(4 digit year)

Already a member?