I have the following issue when installing laravel in the original / var / www / html / laravel folder It worked very well!
but when I want to move this folder to another directory I get the following error,
The requested URL /home/laravel/public/index.php was not found on this server.
in my apache: /etc/httpd/conf/httpd.conf
<IFModule alias_module>...
Alias "/laravel" "/home/laravel/public"/
<directory "/home/laravel/public/>
DirectoryIndex Index.html index.php
Options FollowSynLinks
AllowOverride All
Require all granted
</Directory>
</IFmodule Alias_module>
mod_rewrite.so activated
.htaccess:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
all help serves, Thank you very much for your time Daniel
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Hku5ZP
via IFTTT
Aucun commentaire:
Enregistrer un commentaire