I can’t access my temporary URL, it just shows “Not Supported”. I uploaded laravel files. i’ve configured the index.php and .envshowing not supported
I can’t access my temporary URL, it just shows “Not Supported”. I uploaded laravel files. i’ve configured the index.php and .envshowing not supported
2
Answers
If your web root is the syksxyz directory then the public path will be syksxyz/public
To make sure its working you can add an index.html file in the public folder to see whether the mapping is correct before debugging the php part of it.
Depending on what web server you are using, Apache or Nginx, you can follow official document to configure your web server. Web Server Configuration
To use laravel, you must configure your server properly. Just uploading code to server will not make your website work as expect. The must important part of configuration is directing all requests to the
index.php
.And here is part of my config file of Nginx.
Remember that website
root
should point to./laravel-project/public
directory, becauselaravel-project/public/index.php
file will handle all request for your website.