Lost Password?

Shape5

up-down
Pages: [1]
Print
Author Topic: Main menu does not work with sh404sef  (Read 3049 times)
billtqvn
Member
*
Offline Offline

Posts: 6



« on: March 28, 2008, 02:09:49 AM »

Hi,

I have problem with menu at Main menu position when using SEO enable and sh404sef. Menu links lead to Not Found page. When I turn off Joomla SEO and sh404sef, all work ok.

I am using Joomla 1.5 and VM1.1RC2. Try Main menu with both No-MooMenu and Suckerfish.

Please help me to figure out this issue.

Thanks
Logged
mikek
Administrator
*****
Online Online

Posts: 2529



WWW
« Reply #1 on: March 28, 2008, 07:37:04 AM »

Hi, can you post a url so I can see what links are being created?
Logged

-Mike
------------
Shape 5 Team
billtqvn
Member
*
Offline Offline

Posts: 6



« Reply #2 on: March 28, 2008, 10:17:00 AM »

Hi,

Sorry, I am doing on localhost, so do not have link to show you.

Other menu positions do not have this issue, just main menu.

For instance, no SEO and SEF, the link is: http://localhost/demo/index.php?option=com_content&view=article&id=3&Itemid=7

but, when SEO and SEF on, it will be http://localhost/demo/solution

I put the same menu on bottom position, it work well, but mainmenu position not. In bottom position, it appear like  this: http://localhost/demo/index.php/solution.html

That is the issue.

Thanks
Logged
jonahh
Administrator
*****
Offline Offline

Posts: 2598



WWW
« Reply #3 on: March 28, 2008, 11:18:52 AM »

Have you also enabled " Use Apache mod_rewrite" and " Add suffix to URLs" in  your global configuration?
Logged

-Jonah
------------
Shape 5 Team
billtqvn
Member
*
Offline Offline

Posts: 6



« Reply #4 on: March 30, 2008, 11:14:53 AM »

I do not us these cause I use "without .htaccess" feature of sh404sef.

And I do not think that is the point. Because the same menu is in two position, one at mainmenu of template, other at bottom, at bottom they work but at mainmenu they does not.
Logged
billtqvn
Member
*
Offline Offline

Posts: 6



« Reply #5 on: March 31, 2008, 03:49:49 AM »

Hi,

You could check my live site here: http://www.ntdc.com.vn

Thanks
Logged
junk123
Member
*
Offline Offline

Posts: 1



« Reply #6 on: August 05, 2008, 01:22:38 AM »

Hi there,

I've been banging my head over this one for a while, but I basically compared the Joomla menu and the S5 menu side by side and noticed the S5 version uses aliases vs a url.

Keep in mind, I don't know programming much, but I'm usually pretty good at troubleshooting things.  So this may not be the best solution, but it got the problem solved for me.


Go to the "templates" folder, then into the S5 template you're using (usually the folder is the same name as the template)

There you'll find the menu file.  I don't know the structure of the other templates S5 has so instructions may be slightly different.  Anyhow, download it and MAKE A BACKUP of it as well.  Then edit it.

Look for this one line:
$mitem->link = JRoute::_($mitem->alias);


Then replace it with the following:
//************************************************************************

//      $mitem->link = JRoute::_($mitem->alias);
   $menu_params = new stdClass();
   $menu_params = new JParameter($mitem->params);
   $menu_secure = $menu_params->def('secure', 0);
      if (strcasecmp(substr($mitem->link, 0, 4), 'http')) {
         $mitem->link = JRoute::_($mitem->link, true, $menu_secure);

      } else {
         $mitem->link = $mitem->link;
      }


//************************************************************************


Save the file, then upload it back and see if it works.
It felt SO good to have se404SEF working!  Hope this does it for you too!
Logged
Pages: [1]
Print
Jump to: