Open Source Tutorials - Open Source Training
Open source training & tutorials from experienced, passionate people
chrome icon firefox icon ie icon opera icon safari icon Sings in these Browsers
A- A A+

By A Web Design

Welcome, Guest
Username Password: Remember me

Change the default URL in Joomla 1.5 for Home Menu
(1 viewing) (1) Guest
All your queries regarding
Joomla CMS,
Joomla CMS Installation,
Joomla CMS Configuration,
Joomla built-in Modules,
Joomla 3rd Party Modules,Components and Plugins
and tonnes more... will be solved in this forum
  • Page:
  • 1
TOPIC:

Change the default URL in Joomla 1.5 for Home Menu

Change the default URL in Joomla 1.5 for Home Menu 1 year, 10 months ago #24

  • yoko
Hi,

Could you please help me with changing default URL for Home Menu in Joomla 1.5. Right now its going to index.html whenever I click on Home menu. I have included Intro page which needs to appear only once when viewer first comes in. For that I have set the hierarchy of pages to index.html and then index.php. But due to this, every time we click on Home Menu takes us to intro page. Please tell me how to get rid of this.

Thanks in advance!!!

Re: Change the default URL in Joomla 1.5 for Home Menu 1 year, 10 months ago #26

  • prerna
Hi Yoko,

The solution is to edit one of the Joomla Core file.

Path to the folder where the file is located: ../modules/mod_mainmenu/helper.php
Name of the file: helper.php

Find the below line:
Code:
$tmp->url = JURI::base();

Change JURI::base() with 'index.php' as shown below :
Code:
$tmp->url = 'index.php';

Now the "Home" URL will point to index.php and not index.html

Note: Keep a backup of the changed file, because when you update Joomla some of its core file change.

Note: In Joomla, the default URL of "Home" Menu is http://[ourhost]/index.php gets converted into http://[ourhost] through APACHE and the web server retrieve index.html. For the same functionality to work on Local Windows XP, running Apache Server we need to edit the "httpd.conf" file.

Path to the folder where the file is located:
C:\Program Files\Apache Software Foundation\Apache2.2\conf

Name of the file: httpd.conf

Find DirectoryIndex and make sure index.html is placed before index.php as shown below:

<IfModule dir_module>
DirectoryIndex index.html index.php
</IfModule>
  • Page:
  • 1
Time to create page: 1.04 seconds
OSV Newsletter


Receive HTML?

NOTE: To prevent subscription to the OSV newsletter, uncheck the checkbox above.
Guest Blog for OSV
Free Ebook Download