I'm creating an internet site. I would like this site address to appear such as the following image:

file name extensions like (PHP/JSP) are hidden

I'm not going this site to appear like http://something.com/profile.php I would like .php extension to become removed in address bar when someone opens this site. Quite simply I would like this site to become like: http://something.com/profile

Like a second example, you can try the StackOverflow website address itself.

Can someone help me in it? Thanks!

Just add .htaccess file towards the root folder of the site(for instance, /home/domain names/domain.com/htdocs/) with following content:

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

You've different options. One in it is developing a folder named "profile" and relabel your "profile.php" to "default.php" and set it into "profile" folder. and you will give orders for this page in by doing this:

Old page: http://something.com/profile.php?id=a&abc=1

New page: http://something.com/profile/?id=a&abc=1

If you're not satisfied leave a comment for complicated techniques.

It's calling "url spinning".

Really, the easiest method to manipulate this really is to

  1. Open a brand new folder in your server, e.g. "Data"
  2. Put index.php (or index.html) inside it

And so the URL www.yoursite.com/data will read that index.php file. If you wish to proceed further, open a subfolder (e.g. "List") inside it, put another index.php for the reason that folder and you will have www.yoursite.com/data/list run that PHP file.

By doing this you could have full treatments for this, very helpful for Search engine optimization.