I want to remove the .php from the url through htaccess file. for example home.php to home I'm using the following rewrite rule in htaccess file.
RewriteRule ^(([^/]+/)*[^.]+)$ /$1.php [L]
I also want to assign the login as index. How can I change it.
This is the code you can use to hide .php extension:
To add a trailing slash at the end of the URL (for example: http://www.example.com/about-us/ to go to http://www.example.com/about-us.html)