Remove '.php' extension from URL through .htaccess (test from localhost)

preview_player
Показать описание
Here i'm showing how to remove php extension from web url by .htaccess. Just open your .htaccess file from your server root folder and then copy and paste the code then save it.

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
Рекомендации по теме
Комментарии
Автор

1:50 fixed my problem, I didn't know I had to remove the .php in the href. Thnx a lot

chp
Автор

thanks a lot it works on me... I am using sublime txt editor and save as .htaccess

shortcut
Автор

.htaccess file name not allowed. it will give me error like "You must type a file name"

mayankviroja
Автор

".htaccess" file name not allowed. it will give me error like "You must type a file name"

mayankviroja
welcome to shbcf.ru