× Discussion about "Wellness" Joomla template.

How can I change the link from a mainpost?

More
5 years 10 months ago #30504 by ivan.milic
SEO suffix is most important thing to define in your case!!!!!!!!!! See attached
Attachments:

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #30513 by abonki
Under configuration I could not find the field, see attached image. I works with Isis-Default.
And I was looking under the other menu items and was asking google.

So please, where can I find the function?
Attachments:

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #30520 by ivan.milic
I gave you wrong answer , I tough your problem is VM related but you don't have vm at all.
Fits restore original .htaccess file that come with fresh joomla. Turn off SEO in joomla. Go to menu manager then in each menu and menu item settings. Make sure each item has unique textual alias as you want it. (alias field below title filed parameter) (alias is used for seo link).

If some menu item type does not have alias you can swap type temporally to change alias - this is extreme situation if you see such problem you will understand. Not that "alias menu item type" and "external url menu item type" don't have alias.

When you sort all of them, clear cache and reactivate SEO again.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #30566 by abonki
Hi Ivan,

Many thanks for your answer. I did every step, what you told me. Unfortunately it doesnt work. I have the ID furthermore in my URLs. Perhaps there is a restriction at my provider.

example: provital-oase.de/8-content/homepage/1-vi...ost-your-health.html

Do you have an another idea?
Meanwhile, I will research continues on Google.

best regards
Annett

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #30568 by ivan.milic
Recently some other poster had similar problem then found out it has some component that did SEO so that created conflict. Also check with your provider about server configuration regarding URL rewriting.

Please Log in or Create an account to join the conversation.

More
5 years 10 months ago #30569 by abonki
Hi Ivan,
Hi all readers,

I found a great solution on a english speaking page.
And I already was on the right way with the video.
Here is the solution that working for joomla 3.1 (for me at least)

Edit “components/com_content/router.php“


Replace this: $advanced = $params->get('sef_advanced_link', 0);
With this: $advanced = $params->get('sef_advanced_link', 1);

(twice in router.php)

Replace this:
if (strpos($segments[0], ':') === false) {
$vars = 'article';
$vars = (int)$segments[0];
return $vars;
}


With this:
/*if (strpos($segments[0], ':') === false) {
$vars = 'article';
$vars = (int)$segments[0];
return $vars;
}*/

(I do not know if it's absolutely necessary. It has not harmed.)



2.Change code line 377 of router.php file:
- From: ->where($db->quoteName('alias') . ' = ' . $db->quote($db->quote($segment)));
- To: ->where($db->quoteName('alias') . ' = ' . $db->quote($segment));

The whole information can you find here:
rushtips.com/remove-id-from-url-in-joomla-2-5

old url
provital-oase.de/8-content/homepage/1-vi...ost-your-health.html

new url:
provital-oase.de/content/homepage/vitami...ost-your-health.html

And after clicking on the link I get to the correct page and not to a 404 page.

Good luck to every person who has the same problem with IDs in URLs.

best regards
Annett
The following user(s) said Thank You: ivan.milic

Please Log in or Create an account to join the conversation.

Moderators: milos
Time to create page: 0.131 seconds