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:
In this article, you will learn about rewrite rules, regular expressions, and rewrite conditions, and provide a great list of examples.
This article was written in 2002 and remains one of our most popular posts. If you’re keen to learn more about URLs, you may find this recent article on the “www” prefix, by Craig Buckler, of great interest.
Sogo7
December 23, 2011, 12:11am
4
Have a Google around for ‘url prettification’
There are plenty of demos complete with scripts like this one
yerfry
January 8, 2014, 2:55pm
5
easy ****.
<?php
switch(key($_GET)) {
default:
include(‘read.php’);
break;
}
?>