@avrahamm Could you post your code what do you have right now?
Jun 3, 2020
6
Level 10
Routing unfrieldly urls like /category.php?id=33
Hello! I try to route old style unfriendly url like /category.php?id=33 I wish to redirect it to /category/33 Yet Router doesn't catch it. The best I found is https://stackoverflow.com/questions/44367951/how-to-use-page-phpid-id-routes-on-laravel yet it didn't work for me.
Any idea will be appreciated!
Level 1
using this "category.php?id=33" you are able to get the id with simple $GET["id"] then preform a simple search and redirect paste your code for more undrestanding .
here is a simple example
web.php
Route::get("test",function(){ dd($_GET["id"]); }); url : http://127.0.0.1:8000/test?id=5
1 like
Please or to participate in this conversation.