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
here i want to show only
please help me out
Add an index.php flle to the root folder which contains:
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:
Hope that helps
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.
Have a Google around for ‘url prettification’
There are plenty of demos complete with scripts like this one