Website URL without file extension

First, verify that the mod_rewrite module is installed. Then, be careful to understand how it works, many people get it backwards.

Just add .htaccess file to the root folder of your site. 

Now I’ll show you complete flow of website URL withour file extension .php, .html

 

.htaccess

 

 

index.php

 

page-controller.php

 

pages/about-us.php

Create a folder ‘pages’ and save a file “home.php / about-us.php”. this is your landing page, you can do what you want to do. 🙂

Leave a Reply

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