Hi guys, i am kinda stuck on trying to find a way to build a middleware which will check if the url corresponds to the table item if so it should redirect to the payment page. My monetized_pages table looks like this
|id| url | price |1 | /index | 2500
The problem is that some urls can contain parameters such as
/index/esf46es84ga68e4wf684wae/show. What can i insert in my database in that case and possibly to compare it. I was thinking about using
LIKE but it would also return some items that have the same word in them.