Problems with URLs

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
victorandres
Posts: 1
Joined: 02 Dec 2020, 10:56

Problems with URLs

Post by victorandres » 02 Dec 2020, 11:06

I have a problem with the Aimeos implementation. To carry out my project, I have created a folder on my localhost, it is called "prueba", and to access the frontend, for example, the home page, the URL is "localhost / prueba / public /". The problem comes in the part of the store, to log in, you have to change the href in the code to access the login page. On the other hand, in the administrator part, I don't know where to change those URLs to be able to access it from the browser.
I mean, if i click in "Orders", the URL is "http://localhost/admin/default/jqadm/se ... er?lang=en", and if i change it manually like http://localhost/prueba/public/admin/de ... er?lang=en", it works.
I need help with this please.

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Problems with URLs

Post by aimeos » 03 Dec 2020, 09:30

The document root of your web site must point to the ./public/ directory of your Laravel application, not to the root of the application itself. Your current setup exposes the .env file including all your credentials!
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

User avatar
طهمحمدعبدالتواب
Posts: 1
Joined: 10 Dec 2020, 10:52

Re: Problems with URLs

Post by طهمحمدعبدالتواب » 10 Dec 2020, 11:02

Did you find a solution? I have the same issue even after changing the env APP_URL to ...public/

User avatar
aimeos
Administrator
Posts: 8616
Joined: 01 Jan 1970, 00:00

Re: Problems with URLs

Post by aimeos » 10 Dec 2020, 11:17

Changing the APP_URL is wrong. The document root of your webserver vhost must point to .../yourlaravelapp/public/, not to .../yourlaravelapp/
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply