1.Create .htaccess file using any editor like notepad.
2.Save it to your directory like Domain/.htaccess
3.Add the following code in it.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.*?)(?:/(.*?)/?)?$ $1.php [L,NC,QSA] //Remove .php extension from url
No comments:
Post a Comment