Remove php extension from website url. When people make any website with any CSM, then it doesn’t need to write any extra code to remove .php extension from web url. It already set there. But when someone make website with raw php,then it is necessary to write code in htaccess to remove .php extension. First create a text file and save as .htaccess. Then write the below code.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
Now save the file and put the file in your project folder. That’s it.