How to hide the folder name in url path

Hi

All

I have one form when user cliks on the submit button, it will go to another page of my web site

I want to hide the folder path in the url

for example www.test.com/forms/read.php

here i want to show only www.test.com

please help me out

Thanks
MD.Samiuddin

Add an index.php flle to the root folder which contains:

<?php
include(“forms/read.php”);
?>

If you want to avoid it loading the /forms/ folder all the time then you need to use htaccess, not PHP. Here is the basics of htaccess:
http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html#rewritecond

Hope that helps

Dave

There must be a rule for how you want to show in the address bar and what to show in the page. Or you just want to show home page whatever it is typed in the address bar? You can achieve this with ModRewrite of Apache. See:

Have a Google around for ‘url prettification’

There are plenty of demos complete with scripts like this one

easy ****.

<?php
switch(key($_GET)) {
default:
include(‘read.php’);
break;
}
?>