Remove file extensions with rewrite?

Since I’m using routing Wappler is adding rewrite rules to .htaccess. Is there a setting that allows me to remove the file extensions? I do not want to see .html or .php at the URLs.

If there isn’t a setting, are there any issues with me adding them?

Hi @kfawcett,

The file extensions should not be there unless you added them into the routing name.

Could you share a screenshot of one of your routing settings that is showing the extension?

Hi @scott, thanks for the quick response. I figured it out. The two issues I encountered and corrected were:

  1. The Wappler documentation shows the path starting with a forward slash. This needed to be removed.
    image
    Changed to this:
    image

  2. I had to update links to use the route instead of the page file.
    image