#### Category : url-routing

I’ve researched a lot. Only the thing I’ve found is the question based on regexp resolving. Dynamic Routing in Laravel 5 Application But, I need routing based on my custom logic and to achieve something like this: Route::get( ‘{slug}’, [ ‘uses’ => ‘[email protected]’, ] )->where( ‘slug’, function ( $slug ) {$isCorrect = $slug === .. Read more I am creating an API with Laravel 8 and in the requests to the different resources the path mapping does not behave as I would expect. The entities are cameras and alert levels. A camera can have several alert levels. The routes I have in the api.php file are: //get the information of a specific .. Read more I have changed my eCommerce site but facing few SEO issues with products and category URL http://mart.samishleather.com/product-categories/slug/slug I need to change the only "product-categories" externally fro SEO reason so its need to be changed to http://mart.samishleather.com/category/slug/slug i have tried <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^(.*)product-categories(.*)$ /$1category$2 [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d ..

I’m building an API to support an external application. I have added several routes to it with no problem, but suddenly, when I add a new route (acars/delay), I get a 404 error when trying to hit http://myurl.dev/api/acars/delay with a POST request. Here is my api.php file: Route::post(‘acars/deactivate’, ‘[email protected]’); Route::post(‘acars/ofp’, ‘[email protected]’); Route::post(‘acars/create’, ‘[email protected]’); Route::post(‘acars/pirep’, ‘[email protected]’); ..