Remove .php suffix in url

create .htaccess

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php

We getip.php in myip dir. Put .htaccess to myip dir also

/myip/getip.php

You can access like: http://nhancv.com/myip/getip