Laravel 5 pave the way public



  • I have a project. site.ru

    I put it in the file. site.ru/blog project c laravel♪ But the problem is, the laravel itself will only be available if you come in. site.ru/blog/public

    How to make him available on the reference. site.ru/blog?



  • Try it with help. .htaccess

    RewriteCond %{ENV:REDIRECT_STATUS} ^$
    RewriteRule ^blog/public/$ http://%{HTTP_HOST}/blog/ [R=301,L]
    RewriteRule ^blog/$ /blog/public/ [L]
    



Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2