Project for the project on the Laravel website: http://laravelacademy.org/post/2265.html
When the deployment is complete, use the browser to open the first page/blog not found 404 error.
The routes.php code is as follows:
Try the operation:
Direct cancellation of redirect redirection, modified to:
and modify the jump links in the view to /blog/{slug}
/{slug}
As a result, the home page is out, but the level two page still doesn't come out. Hint 404 notfound!
SOURCE Link: Https://github.com/digjack/Blog
Reply content:
Project for the project on the Laravel website: http://laravelacademy.org/post/2265.html
When the deployment is complete, use the browser to open the first page/blog not found 404 error.
The routes.php code is as follows:
Try the operation:
Direct cancellation of redirect redirection, modified to:
and modify the jump links in the view to /blog/{slug}
/{slug}
As a result, the home page is out, but the level two page still doesn't come out. Hint 404 notfound!
SOURCE Link: Https://github.com/digjack/Blog
In Nginx, add the following configuration in your site configuration, you can use "Elegant link"
location / { try_files $uri $uri/ /index.php?$query_string;}
Or/index.php/blog