How to change Homepage URL?

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!
mohal_04
Advanced
Posts: 108
Joined: 27 Mar 2018, 05:59

How to change Homepage URL?

Post by mohal_04 » 27 Mar 2018, 09:46

Hi,

After installing Aimeos Laravel distribution the home page URL is http://www.example-domain.com/list. Why? And how can I change it?

Laravel version: 5.6
Aimeos version 2017.x
PHP version : 7.x

Thanks!

gladgladwrap
Posts: 10
Joined: 27 Jan 2018, 22:10

Re: How to change Homepage URL?

Post by gladgladwrap » 27 Mar 2018, 20:48

Check out Laracasts.com and look at how routing works.

Here is the Aimeos routes documentation: https://aimeos.org/docs/Laravel/Custom_routes

Add your routes to your routes/web.

Also take a look at Laravel documentation for which routing methods to use. view() and redirect() are good options.
PHP 7.1.14, Aimeos 2017.10, Laravel 5.5.39 (php artisan --version)

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

Re: How to change Homepage URL?

Post by aimeos » 28 Mar 2018, 07:58

You can overwrite routes like this in ./routes/web.php like @gladgladwrap said:

Code: Select all

Route::match( array( 'GET', 'POST' ), '', array(
    'as' => 'aimeos_shop_list',
    'uses' => '\Aimeos\Shop\Controller\CatalogController@listAction',
    'middleware' => 'web',
));
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

mohal_04
Advanced
Posts: 108
Joined: 27 Mar 2018, 05:59

Re: How to change Homepage URL?

Post by mohal_04 » 29 Mar 2018, 05:40

gladgladwrap wrote:Check out Laracasts.com and look at how routing works.

Here is the Aimeos routes documentation: https://aimeos.org/docs/Laravel/Custom_routes

Add your routes to your routes/web.

Also take a look at Laravel documentation for which routing methods to use. view() and redirect() are good options.
Thanks!

vasanti94
Posts: 1
Joined: 13 Apr 2019, 05:01

Re: How to change Homepage URL?

Post by vasanti94 » 13 Apr 2019, 05:03

Many thanks for sharing such a nice post.

Nurturingtechnolab
Posts: 1
Joined: 25 Apr 2019, 06:19

Re: How to change Homepage URL?

Post by Nurturingtechnolab » 25 Apr 2019, 07:21

Thanks for this. while configuring one of my client site I am facing the same issue hope the above tips will fix it.

Post Reply