Duplicate entries in .htaccess

OS info

  • Operating System : Windows 10.0.18363
  • Wappler Version : 3.0.1

Problem description

I am not 100% sure that this is a bug, but it certainly looks like one.

I had created many routes before using Wappler 2.x.x. I recently created a new route using Wappler 3.0.1 and upon inspecting .htaccess, noticed that Wappler put left in the file all the routes that were there before, and at the end of the file, added a new of rules that included the new route that I had just PLUS all the existing ones. Effectively, everything but the new route appears twice.

Note that the Project had Routes that had been created at different times but those routes where in the file only once. I confirmed that using the GIT. All those previously existing routes had been created in versions prior to 3.0.1 – the one I tried now is the first one I created using Wappler 3.0.1

htaccess.zip (767 Bytes)
In the attached file, you can see:

  • Lines 7 to 58: the old routes
  • Lines 73 to 74: the new route
  • Lines 75
    to 126: the old routes again

Steps to reproduce

  1. Click on the “New Server Connect Route”
  2. Define the new route
  3. Click on Generate Routing Rules
  4. Click on Upload Routing Rules
  5. Inspect the updated .htaccess file

PS1: of curiosity, what is the logic for showing the routes in the routes panel? Does not seem to be sorted alphabetically or by creation date.

PS2: the automatic title that says "Bug report xxx " sets the month number to the previous month. It put a 6 but we are on July, and probably s/b a 7. :slight_smile:

Many thanks,


Hi @patrick,
Sorry to bother you but I wanted to know if there is any chance that this may be addressed soon.
Many thanks,