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

do you update in etc/hosts ?

Last updated 2 years ago.
0

no. how should that be updated?

Last updated 2 years ago.
0

Probably just a typo but you are saving it as

.htaccess

not

htaccess

?

Last updated 2 years ago.
0

Yes, it is called .htaccess, with the period in front.

Last updated 2 years ago.
0

Try this htaccess file I use on same mac

  <IfModule mod_rewrite.c>
     RewriteEngine on
     RewriteCond %{REQUEST_URI} !^public
     RewriteRule ^(.*)$ public/$1 [L]
 </IfModule>
Last updated 2 years ago.
0

tried that, but it didn't work. the problem seems to be that apache isn't using the .htaccess file at all. i remove it and nothing changes.

Last updated 2 years ago.
0

Have you tried installing with a VM using Vagrant ?

Last updated 2 years ago.
0

I switched to MAMP and everything worked. The mystery remains, but thanks for everybody's help.

Last updated 2 years ago.
0

check your console logs /var/log/apache2/error_log. the solutions to all my apache2 problem, I found in there.

I went thru the same issue. I can't remember exactly what the solution was but I think it was trying to rewrite in the wrong directory. I had an 404 error, initially i figured that it didn't use the .htaccess, but then console told me otherwise.

Last updated 2 years ago.
0

Add this to http-vhosts.conf file...

<Directory "/Library/WebServer/Documents">
  Options Indexes FollowSymLinks MultiViews
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

Change the directory accordingly. You can also change the settings at a root level.

Last updated 2 years ago.
0

I was able to get things working after modifying my DocumentRoot at httpd.conf to /Users/username/Sites/

then modify the default .htaccess and add RewriteBase

Options +FollowSymLinks

RewriteEngine On

RewriteBase /your/folder/public

Then this will work on Mavericks.

Hope this helps.

Last updated 2 years ago.
0

@jtan1ph ... was exactly what i was looking for, thanks ...

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.