redirect to 404 page if product is not found
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!
Re: redirect to 404 page if product is not found
If you are using Laravel, you may use its redirect() function for redirecting to another URL in case of an error.
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
Re: redirect to 404 page if product is not found
redirect() only returns a response object which isn't sent to the browser by default. A quick and dirty solution could be to use this in the catalog/detail component:
Code: Select all
echo redirect(...);
exit();
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