Page 1 of 1

How to change Homepage URL?

Posted: 27 Mar 2018, 09:46
by mohal_04
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!

Re: How to change Homepage URL?

Posted: 27 Mar 2018, 20:48
by gladgladwrap
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.

Re: How to change Homepage URL?

Posted: 28 Mar 2018, 07:58
by aimeos
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',
));

Re: How to change Homepage URL?

Posted: 29 Mar 2018, 05:40
by mohal_04
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!

Re: How to change Homepage URL?

Posted: 13 Apr 2019, 05:03
by vasanti94
Many thanks for sharing such a nice post.

Re: How to change Homepage URL?

Posted: 25 Apr 2019, 07:21
by Nurturingtechnolab
Thanks for this. while configuring one of my client site I am facing the same issue hope the above tips will fix it.