In most cases, you can locate the file in the /etc/nginx/sites-available directory. If not found, search for it here: /etc/nginx/nginx.conf, /usr/local/nginx/conf, or /usr/local/etc/nginx. Open your Nginx config file as…
Comments closedTag: redirect
Laravel 5.5 introduced new Router class method called redirect, which gives the flexibility to redirect to other URLs directly without creating a controller or closure.…
Leave a CommentYou can use mod_rewrite’s RewriteCond directive to redirect users to different websites depending on what device they are using. .htaccess Rules Following rewrite rules will…
4 CommentsThe Zend framework automatically does this if the user-selected route doesn’t exist.Although in some situations like getting data from the database where the route is…
Leave a CommentIf you want to get the previous URL use the below line of code If you want to redirect to the previous URL use the…
Leave a Comment