Member Avatar

But not clear idea on this, it will great if someone show me the correct and clear way to do this.


From this:

to this:

you just want to remove the php extension?

On your htaccess code you need to add this line:

RewriteEngine On
RewriteRule ^question_papers$ /question_papers.php [L]

That will remove the php extension.

Does that make sense?

You can use .htaccess for URL rewrite, but it's more used in this case: ==>
If you have created your pages without taking in consideration that you will be using URL rewrite, then you have to go with what 'LastMitch' suggested. Good Luck