Change the main directory
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
- РоманАндрейчук
- Posts: 18
- Joined: 13 Jan 2022, 15:08
Change the main directory
I have just installed this ecommerce package.
I have a question about routing. How to remove "shop/" from url? There will be only one store on the site.
Example:
http://magic.com/en/shop/Demo-article-5
Should be:
http://magic.com/en/Demo-article-5
I am use Laravel 8*, Aimeos 2021.10*, php 7.3*
I have a question about routing. How to remove "shop/" from url? There will be only one store on the site.
Example:
http://magic.com/en/shop/Demo-article-5
Should be:
http://magic.com/en/Demo-article-5
I am use Laravel 8*, Aimeos 2021.10*, php 7.3*
Re: Change the main directory
You can remove the "shop" prefix from the generated URLs:
- https://github.com/aimeos/aimeos-larave ... op.php#L19
- https://github.com/aimeos/aimeos-larave ... #L194-L249
The problem is that the Laravel login won't work afterwards and you have to find a workaround for that.
- https://github.com/aimeos/aimeos-larave ... op.php#L19
- https://github.com/aimeos/aimeos-larave ... #L194-L249
The problem is that the Laravel login won't work afterwards and you have to find a workaround for that.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
- АндрейЖидилин
- Posts: 10
- Joined: 27 Apr 2022, 10:00
Re: Change the main directory
Is there any workaround to get around the admin login issue?aimeos wrote: ↑14 Jan 2022, 08:17 You can remove the "shop" prefix from the generated URLs:
- https://github.com/aimeos/aimeos-larave ... op.php#L19
- https://github.com/aimeos/aimeos-larave ... #L194-L249
The problem is that the Laravel login won't work afterwards and you have to find a workaround for that.
Re: Change the main directory
In Laravel 9, it should work because the authentication URL changed to /auth/login
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star