How to hide php,html extension in address bar.i have htdocs folder. in htdocs folder had index.php file and folders.i want to show in address bar like this:
'index.php?page=exams' is possible
can i add any code in my exsting files?
Asked
Active
Viewed 31 times
1

Naveen Golla
- 51
- 1
- 10
-
2have you tried anything so far ? – Kanishka Panamaldeniya Jan 22 '16 at 02:11
-
Possible duplicate of [Remove .php extension with .htaccess](http://stackoverflow.com/questions/4026021/remove-php-extension-with-htaccess) – Onots Jan 22 '16 at 02:21
1 Answers
0
To hide all file extensions, You can use the following line in htaccess :
Options +Multiviews
This will let you access /index.php as /index,,

Amit Verma
- 40,709
- 21
- 93
- 115
-
Thank's for your answer!.how to show www.example.com/index?page=exam ,in exam folder have exam.php. – Naveen Golla Jan 22 '16 at 02:39