Q&A: Routing integration in Wappler

Well unfortunately Nginx does not have a routes configuration file in the site, but only in its system folder and it is for the whole server. So we can’t change that from Wappler …

But if you have better ideas - be my guest :slight_smile:

We are already writing rules in htaccess and web.config for iis

1 Like

I was only teasing, I knew that it would not be possible. I am looking at running Nginx together with Apache so that I can use .htaccess. :sunglasses:

1 Like

nginx and htaccess /rewrite is that really working? I got lots of troubles with plesk and that setup…

To make sure that Apache is running alongside Nginx make sure that the PHP uses Apache
image

and you have selected
image

Even then, I cannot get .htaccess to be recognised. Am waiting for my host to come back to me.

Ok, thanks - does version 2 of Framework7 still work with the onclicks?

That is the most common setup indeed. Nginx is often used as proxy server. Also when you use Nodejs but indeed also with Apache and php in the back.

It is really easy and automatically setup in control panels like Plesk Onyx - highly recomended for multi sites/ accounts / larger web hosting

1 Like

Easy to set-up on WHM also:

1 Like

It is possible that Apache is not configured to allow overrides from .htaccess file. Seems to be the default for 2.3.9 and later.

http://httpd.apache.org/docs/2.4/mod/core.html#allowoverride

1 Like

Thank you @George, @Dave and @patrick, I really appreciate your inputs. :love_you_gesture:

My head is spinning around at the moment, but given the information, I should be able to find a solution. I’ll start a new topic as soon as I have it working.

Reverted toFramework 7 version 2 and onclick works

No problem Ben. Engintron is so easy to set-up, even with CloudFlare. Can be done in five minutes. Really does make it painless if you are using WHM and have root access to run the install script. If you have any issues (you shouldn’t) please give me a shout if you need to.

1 Like

:smile::ok_hand:t5: Five minutes never existed in IT work

4 Likes

We always invoice for the first hour :smiley:

2 Likes

I’m not sure what you mean. When you refer to the ‘routing you already have’, do you mean it’s already possible to use .htaccess to rewrite URLs which will work with Wappler? I’ve tried, but it doesn’t seem to work - except for simple rewrites where there are no parameters. Also, what do you mean by ‘it is advisable to use them just for client side stuff’? I appreciate that routing is required for SPA’s - and I imagine it applies similarly to standard sites too (but I’m not sure why it doesn’t work already).

I’m quite happy to wait until the new feature is released and I discover the answers then. I’m sure things will become clearer then.

Not true any more! Forget I said this :slight_smile:

Routing is now fully implemented in Wappler 1.9.0

For explanation see:

2 Likes

3 posts were split to a new topic: Existing htaccess overwritten on upload

Hi @george,
Could I suggest putting this in the routing documentation as a checking/prerequisite step? I’ve just lost quite a lot of time trying to work out why routing wasn’t working on a new project. It turned out that allowoverride was ‘None’ from the default in Apache.

2 Likes