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

its called URL rewriting, and laravel comes with this by default i.e. there is a .htaccess file in public/route that redirects everything.. so it could be this is not enabled by default in your apache.

if this is a local one, then you can set this up yourself in httpd-vhosts.conf? (search for setting up a virtual host)

so basically you would do something like:

<VirtualHost *:80>
    ServerAdmin email
    DocumentRoot "/Users/admin/projects/personal/mphm/public"
   DirectoryIndex index.php
   <Directory "/Users/admin/projects/personal/mphm/">
     AllowOverride all
      Require all granted
    </Directory>
    ServerName mphm.localhost.com
    ServerAlias mphm.localhost.com
    ErrorLog "/private/var/log/apache2/mphm-error_log"
    CustomLog "/private/var/log/apache2/mphm-access_log" common
</VirtualHost>
Last updated 9 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.