Problem is that with the default Nginx configuration on Homestead I get the infamous "No input file specified." error when I try to visit that url, while it works as the usual on url that didn't end with the php extension.
So how can I configure Nginx to pass "user/me.php" as querystring for laravel's index.php, as it's done for normal routes?
I work with an SEO company and for a new site using Laravel, I wouldn't use .php. Do a 301 redirect list from old URLs to new ones. If he thinks that's bad, he's not a very good "SEO guy".
As for the routing, I used Apache for that one site and not done it with Nginx.
Here is the conversion of that Apache rewrite
location / {
try_files $uri $uri/ /index.php$is_args$args;
}
// In the php part (would be extra stuff here)
location ~ \.php$ {
try_files $uri /index.php =404;
}
Thank you, that was what I looking for :) Even though I don't think the 404 part is needed in my case. I will also talk to the SEO guy about the redirects, in the meantime I can keep working.
@timgavin You just put it where your original location block was (as long as you're actually using nginx). If it's downloading a file, that means PHP is probably not working?
@bashy Sorry about the delay, I didn't see the notification!
I'm doing this on a new Forge server, and PHP is definitely working as it's serving the files no problem. Just not when I try to remove the extension. Strange...