Support the ongoing development of Laravel.io →
Installation Configuration
Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

mod_alias is enabled in apache?

LoadModule alias_module modules/mod_alias.so
Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

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

   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.

Have tried your code but not working with me also.

0

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
0

Sign in to participate in this thread!

Eventy

Your banner here too?

fbidu fbidu Joined 30 Apr 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.