Whenever a user clicks a link like www.mywebsite.com/hello.php, I want www.mywebsite.com to appear in his address bar. I tried modifying the .htaccess file for this. The rules worked for the home page. But whenever I click a link, the php page for that link appears in the address bar. How can I hide the names of page even after a link is clicked.
RewriteEngine On
RewriteRule ^site$ /*.php [L]
Eg. When I type mywebsite.com/index.php it shows only mywebsite.com. But if I click a link in the page, like <a href="mypage.php">My Page</a>, mywebsite.com/mypage.php appears in the URL.