Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

JoomSEF | no SEO uris
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: JoomSEF | no SEO uris

JoomSEF | no SEO uris 15 years, 11 months ago #5486

Hi,

i've Joomla 1.0.15 installed and JoomSEF running. I also activated SEO in the joomla global config. JoomSEF is acivated and working. i know that because self created redirects are working!!! But my links are still displayed normally (...index.php?option=....) and not in "SEF format" like it normally should.

Can anybody tell me the reason for that and how i can get the uris in "SEF format"?

(i'm using the standard htaccess-File from the JoomSEF-docu with RewriteBase uncommented)

thanks
regards
Last Edit: 15 years, 11 months ago by Raven_3_.

Re:JoomSEF | no SEO uris 15 years, 10 months ago #5531

  • miun
  • OFFLINE
  • A pesimist is just a well-informed realist.
  • Posts: 563
Hello,
make sure you have cleared the Joomla cache (all levels) after you have turned the SEO on.

I think that might be the reason. (see in list of created URLs if there are stored any; if not, double check if everything is set to on).
ARTIO Support Team

Re:JoomSEF | no SEO uris 15 years, 10 months ago #5536

i haven't caching turned on anyway.

But after i checked the created uris in the components backend i saw that there are only uris from the user menu.
Damn i think i know what the problem is: in my template i'm creating the mainmenu items with custom sql queries.

I'm sooo stupid.... But can you tell me what i've to do to get them work with SEF? Suround them in a SefRelToAbs(...)-Function?

thanks for this hint ;)
regards

Re:JoomSEF | no SEO uris 15 years, 10 months ago #5539

  • miun
  • OFFLINE
  • A pesimist is just a well-informed realist.
  • Posts: 563
Hello,

this depends on Joomla version.
If you are on 1.0.x (as you write), then it just create the URL through sefRelToAbs().
In joomla 1.5.x it would be JRoute::route().
ARTIO Support Team

Re:JoomSEF | no SEO uris 15 years, 10 months ago #5544

ok i tried following:

 
<?php
$database->setQuery("SELECT id, name, link FROM #__menu WHERE menutype='mainmenu' and parent='0' AND access<='$gid' AND sublevel='0' AND published='1' ORDER BY ordering");
$rows = $database->loadObjectList();
foreach($rows as $row) {
echo "<a class='colormenu' href='" . sefRelToAbs($row->link . "&amp;Itemid=" .$row->id) . "'>$row->name</a>";
}
?>
 


but this results in a links such as:
www.mysite.com/contenttitle.html?option=...mp;id=1&Itemid=1)

regards

Re:JoomSEF | no SEO uris 15 years, 10 months ago #5545

ok...for some kind of reason it works in meanwhile (without changing anything!).

thanks for the help.
regards
  • Page:
  • 1
User Login Empty