It is required that when going through the url www.example.com/ test the script www.example.com/ test.php is executed

Please tell me how it can be done

Closed due to the fact that the essence of the issue is not clear to the participants by Denis , Denis Bubnov , ermak0ff , Yuri , AK 3 Feb '17 at 12:39 .

Try to write more detailed questions. To get an answer, explain what exactly you see the problem, how to reproduce it, what you want to get as a result, etc. Give an example that clearly demonstrates the problem. If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    RewriteRule ^folder/?$ file.php [L] 

    That's it =)