Actions

Putting default 'Home Page' at any position in mainmenu

From Joomla! Documentation

Revision as of 14:22, 19 January 2011 by Mvangeest (Talk | contribs)

Joomla 1.0

By default in Joomla! 1.0.x the first page in the Main Menu (mainmenu) is also the default home page for your site. You can't put the front page in some other position in the menu and set it up as your home page, at least you can't do it without resorting to tricks.

Using .htaccess

You can make a little modification in .htaccess file to achieve a similar effect.

  • First create a link to your front page in the main menu and put it in any place where you want ... it doesn't need to be first in your main menu.
  • Add these lines at the end of your .htaccess file:
RewriteCond %{REQUEST_METHOD} GET
RewriteRule ^index.php$ index.php?option=com_frontpage&Itemid=1   [QSA,L]

You might want to change the Itemid=1 to the Itemid of the link you created.

Using a hidden Main Menu

I'm not saying the above couldn't work but it seems problematic.

The best way to get flexibility about the location of your "home page" in your visible navigation is to put Main Menu into a position that is not visible to your users. Then make a separate primary navigation menu with whatever links you want in whatever order you want them.