Laravel System Deploy in Xampp

Asked

Viewed 161 times

0

Good afternoon, I have a system created with Laravel 5.5 and I need to climb it with the Xampp. If I access it Url the public directory of Laravel, works, but I need to access the project root. I created a .htaccess and I re-directed but when trying to access I have error 403, access denied.

I rode the .htaccess as follows:

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

RewriteEngine On

# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ /sistemaLaravel/index.php [L]

There are some projects in Java and PHP hosted within this xampp in htdocs and they work perfectly. Grateful.

  • Shouldn’t be: /sistemaLaravel/public/?

  • Already on the server or you are accessing from the machine itself?

1 answer

0


Tested like this:

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

Options +FollowSymLinks
RewriteEngine On
RewriteBase /sistemaLaravel

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]

Browser other questions tagged

You are not signed in. Login or sign up in order to post.