Joomla - multiple index.php/index.php help

gwmbox

Joined: 2007-05-08
Posts: 38
Posted: Sat, 2007-06-02 01:33

Hi guys

Have both Joomla and Gallery2 working well on their own but when using G2 embedded within Joomla I notice that the URL keeps having an index.php/ added to the URL, so the URL grows like mydomain.com/index.php/index.php/index.php etc

I have Sef off, both in Joomla and G2, I have Joomsef installed but disabled and even when its enabled I have it set to skip G2

Really need some help with this one as this is my only issue I am having and will love to get this one fixed.

All help greatly appreciated...

 
muslimways

Joined: 2006-09-03
Posts: 20
Posted: Wed, 2007-07-18 10:25

Hi,

I got similar problem so was wondering if it's possible to tell me how you solved this problem.

Thanks

 
muslimways

Joined: 2006-09-03
Posts: 20
Posted: Wed, 2007-07-18 10:37

Ok,

I managed to find the fix on another forum. What you have to do is edit the init.inc of your gallery2 Joomla component:

find the part:

Quote:
/* store base url */
if(function_exists('sefRelToAbs')){
core::setParam('core', 'baseurl', sefRelToAbs($baseUrl),false);
} else {
core::setParam('core', 'baseurl', rtrim($mosConfig_live_site, '/').'/'.$baseUrl,false);
}

and replace it with:

Quote:
/* store base url */
//if(function_exists('sefRelToAbs')){
// core::setParam('core', 'baseurl', sefRelToAbs($baseUrl),false);
//} else {
core::setParam('core', 'baseurl', rtrim($mosConfig_live_site, '/').'/'.$baseUrl,false);
//}

 
Partic

Joined: 2006-02-02
Posts: 2
Posted: Tue, 2008-04-22 04:03

Great work! Hopefully it will be incorporated into the next build of G2 Bridge. Solved my problem entirely.