Christian, I am getting confused which is not difficult to do to this nearly octogenerian.
If I am right, you are wanting to switch from PHP to NodeJS. In that case, I assume that the remote sever facilitates NodeJS.
For the setup, have a look at
Christian, I am getting confused which is not difficult to do to this nearly octogenerian.
If I am right, you are wanting to switch from PHP to NodeJS. In that case, I assume that the remote sever facilitates NodeJS.
For the setup, have a look at
that’s exactly what I did (I think) but it doesn’t work.
I’ve wasted several days on this.
Since all my database applications work with php/Mysql, I would like to implement the new project with it.
I just can’t get along with the tutorials on routing.
For the routing to work for PHP, you need to have an Apache server running. In other words, if the server is IIS or NGINX then .htaccess
is not avaliable.
For IIS you can use a reverse (NodeJS) proxy as per this dicussion
Apache, php, mysql and mod_rewrite are running on my server
What have you achieved and what are you missing?
Can you already obtain each param of the route?
Unfortunately not, I don’t understand anything here.
Especially how I get the $permalink of the respective page in the route.
Especially in concatenated links (example: www.mysite.de/cat1/location1/produkt1
)
What would be the permalink in that case? The combination of all slash-separated “categories”?
You’d need to make a route for each case: 1 param, 2 params, 3 params
The permalink is the combination of all these params, you can obtain so by concatenating in Wappler steps, or access a certain $_SERVER variable that might contain that already
Thanks for the information.
But how exactly do I do that?
“Advanced Rewriting with URL Parameters” on Teodor’s tutorial, start by attempting to grab the params
Also, I’m only familiar with NodeJS, so I don’t know if the process to do this is different on PHP
On NodeJS you can attach a server action to a page and there you can run the steps to concatenate the params into a permalink variable
Unfortunately I can’t get any Nodejs page online.
Christian,
Then there should be no problem in following
You do not need NodeJS for this.
I’ve come that far.
and a simple route works too.
But what’s next?
How do I get out?:
www.mysite.de?pageid=123&pageid=456&pageid=789
ore www.mysite.de?catid=123&subcatid=456&pageid=789
This route: www.mysite.de/cat1/location1/produkt1
I see just one, /:permalink/
, 1 param (also, erase the slash in the end)
Now create for 2 and 3 params, something like for 3 params:
/:cat1/:cat2/:cat3
ok, I can pull the page content over the permalink.
but how do I get the variables from the link via the route into my query?
www.mysite.de/cat1/location1/produkt1
/:cat1/:location/:product
$_PARAM.cat1
See if you can find a way to access that variable, I only know on NodeJS
sorry, my programming skills are limited
Take a look at this if you are wanting to get the URL param into a server connect action
Thanks Sorry_Duh,
that was exactly what i was looking for all along
Too bad about the long time of the previous conferences
Thank you again!!