I created a new target, uploaded it to the location but when trying to run the application none of the links work. I have refreshed the routes many times, changed from Site Root to Document many times, and still no resolution. I think something got corrupted. Any advice as to what I am doing wrong or what needs fixing. Thanks much. Please see the video. Please video showing the solution working on my local but not on my remote host.
So I got it to work on my hosting by using " ./route-name/ " instead of " /route-name/ ". However, if I refresh the page I get the same error “The requested URL /route-name was not found on this server.”
So on 1 server it works and on the other it doesn’t. Since you get a 404 when accessing the url it seems that the rewrites are not working on that server. That means that the .htaccess was not uploaded to that server or that the server doesn’t support .htaccess. Are both servers running Apache? It can be that the second server is running nginx or IIS, nginx is not supported by Wappler and for IIS you need a web.config. Just make sure all targets use the same type of server for compatibility.
The ./route-link/ are for the page routes, with that it modifies the url without reloading the page. When you have /route-link/ it will do a normal navigation and reload the page, the .htaccess rewrite should then make sure it knows which page it should load.
Resolved. Modified the httpd.conf with the following
<Directory>
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
allow from all
</Directory>
So in essence .htaccess was enabled by default but the directory was limited. Had to allow overrides and SymLinks. So if you are using DigitalOcean or GoDaddy this is your solution
Hi all, I’m having the same issue here and I’m running an IIS Windows server. Does anyone have a copy of a web.config file I can use to resolve the non-working routing issues please…?