How to remove .php extension from webpage

Paste this code in .htaceess file
………………………………………………….
RewriteEngine on
RewriteCond %{THE_REQUEST} /([^.]+).php [NC]
RewriteRule ^ /%1 [NC,L,R]

RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^ %{REQUEST_URI}.php [NC,L]
………………………………………………….

To learn more about English, click here.

Share it- 

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *