Skip to main content

I have some pages with urls like this:

http://example.com/landing/abcd
http://example.com/landing/efgh

as menu items: $items['landing/%'] = array( 'title' => 'Landing page', 'description' => 'Landing page', 'page callback' => 'mymodule_landing_display', 'page arguments' => array(1), 'access arguments' => array('access content'), 'type' => MENU_NORMAL_ITEM, );

    $items['landing/%'] = array(
        'title' => 'Landing page',
        'description' => 'Landing page',
        'page callback' => 'mymodule_landing_display',
        'page arguments' => array(1),
        'access arguments' => array('access content'),
        'type' => MENU_NORMAL_ITEM,
    );

Now i want to use them as the home page of the domains:

http://abcd.com/
http://efgh.com/

I don't want to use a simple redirect.

What is the best way to do it ?

I have some pages with urls like this:

http://example.com/landing/abcd
http://example.com/landing/efgh

as menu items: $items['landing/%'] = array( 'title' => 'Landing page', 'description' => 'Landing page', 'page callback' => 'mymodule_landing_display', 'page arguments' => array(1), 'access arguments' => array('access content'), 'type' => MENU_NORMAL_ITEM, );

Now i want to use them as the home page of the domains:

http://abcd.com/
http://efgh.com/

I don't want to use a simple redirect.

What is the best way to do it ?

I have some pages with urls like this:

http://example.com/landing/abcd
http://example.com/landing/efgh

as menu items:

    $items['landing/%'] = array(
        'title' => 'Landing page',
        'description' => 'Landing page',
        'page callback' => 'mymodule_landing_display',
        'page arguments' => array(1),
        'access arguments' => array('access content'),
        'type' => MENU_NORMAL_ITEM,
    );

Now i want to use them as the home page of the domains:

http://abcd.com/
http://efgh.com/

I don't want to use a simple redirect.

What is the best way to do it ?

minor spelling / grammar corrections for better readability
Source Link

I madehave some pages with urls like this:

http://example.com/landing/abcd
http://example.com/landing/efgh

as menu items: $items['landing/%'] = array( 'title' => 'Landing page', 'description' => 'Landing page', 'page callback' => 'mymodule_landing_display', 'page arguments' => array(1), 'access arguments' => array('access content'), 'type' => MENU_NORMAL_ITEM, );

Now i want to seeuse them as the home page of the domains:

http://abcd.com/
http://efgh.com/

NotI don't want to use a simple redirect. What

What is the best way to do it ?

I made some pages with urls like:

http://example.com/landing/abcd
http://example.com/landing/efgh

as menu items: $items['landing/%'] = array( 'title' => 'Landing page', 'description' => 'Landing page', 'page callback' => 'mymodule_landing_display', 'page arguments' => array(1), 'access arguments' => array('access content'), 'type' => MENU_NORMAL_ITEM, );

Now i want to see them as the home page of the domains:

http://abcd.com/
http://efgh.com/

Not a simple redirect. What is the best way to do it ?

I have some pages with urls like this:

http://example.com/landing/abcd
http://example.com/landing/efgh

as menu items: $items['landing/%'] = array( 'title' => 'Landing page', 'description' => 'Landing page', 'page callback' => 'mymodule_landing_display', 'page arguments' => array(1), 'access arguments' => array('access content'), 'type' => MENU_NORMAL_ITEM, );

Now i want to use them as the home page of the domains:

http://abcd.com/
http://efgh.com/

I don't want to use a simple redirect.

What is the best way to do it ?

Source Link
user1014351
  • 369
  • 1
  • 3
  • 12

How to make a page the home page of another domain

I made some pages with urls like:

http://example.com/landing/abcd
http://example.com/landing/efgh

as menu items: $items['landing/%'] = array( 'title' => 'Landing page', 'description' => 'Landing page', 'page callback' => 'mymodule_landing_display', 'page arguments' => array(1), 'access arguments' => array('access content'), 'type' => MENU_NORMAL_ITEM, );

Now i want to see them as the home page of the domains:

http://abcd.com/
http://efgh.com/

Not a simple redirect. What is the best way to do it ?