Still the same error... Flipping through Stack Overflow I found that adding a line
RewriteBase /sgi
Could help, but no deal... I'm wondering if the option
AllowOverride None
Could have something to do with the fail
mod_alias is enabled in apache?
LoadModule alias_module modules/mod_alias.so
Enable apache mod_rewrite:
sudo a2enmod rewrite
Then
<Directory "/var/www/html/sgi/dev/public">
DirectoryIndex index.php
AcceptPathInfo on
AllowOverride None
Options None
Order allow,deny
Allow from all
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</Directory>
alias /sgi "/var/www/html/sgi/dev/public"
Finally, restart apache and I hope it'll help.
chamnan said:
Enable apache mod_rewrite:
sudo a2enmod rewrite
Then
<Directory "/var/www/html/sgi/dev/public"> DirectoryIndex index.php AcceptPathInfo on AllowOverride None Options None Order allow,deny Allow from all
</Directory> alias /sgi "/var/www/html/sgi/dev/public" Finally, restart apache and I hope it'll help.Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php [L]
Have tried your code but not working with me also.
The following helped immensely: http://stackoverflow.com/questions/8376590/htaccess-is-ignored-when-using-an-aliased-uri
Long story short: in your laravel instances public .htaccess file, try telling the server how you made it there:
RewriteBase /~YourAlias
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community