laravel5.2 blog page Jump 404 error

Source: Internet
Author: User
Keywords Php laravel5
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:

    1. 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:

    1. 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

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.