A
A
abuamr2015-11-22 13:10:24
Laravel
abuamr, 2015-11-22 13:10:24

How to set up laravel 5 hosting?

I downloaded and installed laraver on XAMPP and it worked ( localhost/laravel/public/) , but when I uploaded it to the hosting and changed ('url'), it didn't work. tell me how to set up laravel hosting?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Stanislav, 2015-11-22
@abuamr

And what exactly does it give out?
1) In the public directory in the .htaccess file, remove the lines

<IfModule mod_negotiation.c>
        Options -MultiViews
    </IfModule>

2) At the root create .htaccess with this content
Options Indexes FollowSymLinks
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^$ public/ [L]
    RewriteRule (.*) public/$1 [L] 
</IfModule>

A
Andrew Vakulenko, 2015-11-23
@pro100ShCoder

Only route / is opened, and on any other route, the server issues 404. What could be the matter?

A
Alexey Maksimenko, 2015-11-22
@ddrt

Clumsy methods:
1. Throw all files and folders one level higher, and from the public folder files to public_html\htdocs.
2. Create a folder in it, throw all the laravel files except index.php server.php and the public folder, move the files to the root from the latter. Change the path in the index and server.php to yours and fix .htaccess.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question