vinolo

[PROBLEM] Laravel Route doesn't work with domain

Posted 1 month ago by vinolo

I'm new with Laravel and I try tu put my project on a private server. If I access with IP it works all the routes, but if I access from a domain that I have (is a free .tk domain) (for example 111.222.333.444/create it works, but domain.tk/create doesn't works).

I want to buy a .com, .es or .cat domain, but before I want to see how it works with .tk domain.

My final project is on my computer and the server only have the main code of Laravel and a test route that I put on it (/create), but when I try to load domain.tk/create it shows the same as domain.tk, the main page, but with the ip/create it shows the message "Soy create" (this is the message that I put on the return of the route function).

I'm using apache2 on this server with php 7.1.

Sorry if this isn't post at a correct place.

Thanks.

Please sign in or create an account to participate in this conversation.

Laracasts Mascot

Hi, Have We Met Yet?

Did you know that, in addition to the forum, Laracasts includes well over 1000 lessons on modern web development? All for the price of one lunch out per month.

Sign Me Up

Channels

Reply to

Use Markdown with GitHub-flavored code blocks.