I have a php form which contains an attribute: action="results.php"
I want to hide the php extension from results.php to results?showresults or /?results

and the result page contains the link to go back to index.php and I want to change hide the index.php to just main folder

Now my question is
1. whats thing I have to write in .htaccess file and also in php files

2. Please give me the step by step solution

Member Avatar for diafol
Please give me the step by step solution

As Pritaeas says - do some searching. You should come across usable solutions within 30 minutes.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.