Member Avatar

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

@vishalonne

From this:

http://cbse.in/classxii/question_papers.php

to this:

http://cbse.in/classxii/question_papers

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: domain.com/index.php?page=home ==> domain.com/home
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