Hi,
I think I’m hitting a bug here. I made changes using the Wappler routes menu but those changes did not propagate to the .htaccess file. Effectively, I see the old configuration. Maybe I’m doing something wrong, but this is what I did:
WHAT I DID
Click on the Routes menu in the left pane
Delete a route that is no longer in use
Change a URL of an existing route to a new value
WHAT I OBSERVED
A) the .htaccess file still has the route that I deleted
B) the route that I changed still has the old values.
C) there seems to be that every record appears twice.
BTW, Wappler duly messaged me saying that the new routes had been generated. I also tried clicking on the Generate Routing Rules button with the same results.
WHAT I EXPECTED
The routes changed to the values I entered and the deleted records to disappear.
Only one instance of each record.
Hi Theodor,
There are at least 3 problems:
a) The old routes are not being removed from .htaccess
b) the changes are not reflected on .htaccess
c) everything in .htaccess seems to be duplicated
To what I should add, based on your question:
d) I don’t seem to be able to add a new route.
Does it make any difference if you backup the contents of your .htaccess file somewhere and then delete it from the .htaccess file, save it and try to add the rules to an empty .htaccess
I have seen this issue in a couple of projects.
I have no idea why/how it happenned. Interestingly, even cloning the project again from Git results in same behaviour.
Never reported it since apart from those couple of projects, it does not happen in any of the other projects. And there is no way to reproduce it.
No, wappler just updates the section with its routes rules.
Maybe something specific in your htaccess breaks it though, maybe you can try adding your custom rules section by section to see which one is causing this.