Incorrect URL path with multiple apache alias
Forum rules
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Incorrect URL path with multiple apache alias
Hi everyone,
I recently tried to install the aimeos demo inside my server running apache2. Inside this server I have multiple laravel installations and I tried to configure them like this inside my httpd.conf:
I also modified my .htaccess file under public adding:
and APP_URL in .env file:
While both my other installations are working fine, both responding with correct routing:
{server_url}/XXX/products
{server_url}/XXY/products
Aimeos seems to responde correctly only when I try to get to the homepage {server_url}/aimeos/ redirecting me to {server_url}/aimeos/list.
All others routes responds like this: {server_url}/detail/15/Demo_article/0 removing my alias in the url and generating 404.
I can't understand the source of this problem.. is there any way to fix this?
Thanks in advance,
Michael
I recently tried to install the aimeos demo inside my server running apache2. Inside this server I have multiple laravel installations and I tried to configure them like this inside my httpd.conf:
Code: Select all
<VirtualHost *:80>
ServerName {server_name}
DocumentRoot /var/www/XXX/public
Alias /XXY /var/www/XXY/public
Alias /aimeos /var/www/aimeos/public
<Directory /var/www/XXX>
AllowOverride All
</Directory>
<Directory /var/www/XXY>
AllowOverride All
</Directory>
<Directory /var/www/aimeos>
AllowOverride All
</Directory>
</VirtualHost>
Code: Select all
RewriteBase /aimeos
and APP_URL in .env file:
Code: Select all
APP_URL={server_url}/aimeos
{server_url}/XXX/products
{server_url}/XXY/products
Aimeos seems to responde correctly only when I try to get to the homepage {server_url}/aimeos/ redirecting me to {server_url}/aimeos/list.
All others routes responds like this: {server_url}/detail/15/Demo_article/0 removing my alias in the url and generating 404.
I can't understand the source of this problem.. is there any way to fix this?
Thanks in advance,
Michael
Re: Incorrect URL path with multiple apache alias
Did you clear the cache (./artisan aimeos:cache)?
Does a direct call of {server_url}/aimeos/login work?
Does a direct call of {server_url}/aimeos/login work?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Incorrect URL path with multiple apache alias
I cleared artisan cache using:
The url {server_url}/aimeos/login works.
Even when I type {server_url}/aimeos/detail/15/Demo_article/0, I get the product page but I don't get redirected properly when I click the product itself from the list page.
Code: Select all
php artisan cache:clear
php artisan route:cache
php artisan config:cache
php artisan view:clear
Even when I type {server_url}/aimeos/detail/15/Demo_article/0, I get the product page but I don't get redirected properly when I click the product itself from the list page.
Re: Incorrect URL path with multiple apache alias
OK, that means basic routing is OK. Do other Laravel packages also show this behavior?
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Incorrect URL path with multiple apache alias
What do you mean by other Laravel packages? Do you mean other Laravel projects? If so, routing is working fine with the other projects.
Re: Incorrect URL path with multiple apache alias
How does the generated URLs look like?
or with domain as absolute URL?
Code: Select all
/detail/15/Demo_article/0
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,

Re: Incorrect URL path with multiple apache alias
I'm not sure I understood your request completely..
What I want:
What I get:
Trying to achieve that I also add inside /public/.htaccess the following:
As I did with the other ecommerce but it changed nothing.
What I want:
Code: Select all
http://{myurl}/aimeos/detail/15/Demo_article/0
Code: Select all
http://{myurl}/detail/15/Demo_article/0
Code: Select all
RewriteBase /aimeos
Re: Incorrect URL path with multiple apache alias
how was this solved? I'm facing the same problem
aimeos installed in: /document_root/shop
prefix xy in shop.php:
startpage works fine: <my domain>/shop/gw
but click on a product link leads to <my domain>/gw/Product_1
instead to <my domain>/shop/gw/Product_1
how / where can I add the subdirectory /shop ?
thank you
aimeos installed in: /document_root/shop
prefix xy in shop.php:
Code: Select all
'default' => ['prefix' => 'xy', 'middleware' => ['web']],
but click on a product link leads to <my domain>/gw/Product_1
instead to <my domain>/shop/gw/Product_1
how / where can I add the subdirectory /shop ?
thank you
Re: Incorrect URL path with multiple apache alias
Laravel doesn't seem to support that:
https://github.com/aimeos/aimeos-larave ... -506869277
https://github.com/aimeos/aimeos-larave ... -506869277
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos,
give us a star
If you like Aimeos,
