- Posts: 14116
- Thank you received: 1639
How can I change the link from a mainpost?
-
ivan.milic
Support Staff - Moderator
Less
More
11 years 6 months ago #30504
by ivan.milic
Replied by ivan.milic on topic How can I change the link from a mainpost?
SEO suffix is most important thing to define in your case!!!!!!!!!! See attached
Please Log in to join the conversation.
-
abonki
Inactive member - Topic Author
- New Member
Less
More
- Posts: 16
- Thank you received: 1
11 years 6 months ago #30513
by abonki
Replied by abonki on topic How can I change the link from a mainpost?
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?
And I was looking under the other menu items and was asking google.
So please, where can I find the function?
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 6 months ago #30520
by ivan.milic
Replied by ivan.milic on topic How can I change the link from a mainpost?
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.
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 to join the conversation.
-
abonki
Inactive member - Topic Author
- New Member
Less
More
- Posts: 16
- Thank you received: 1
11 years 5 months ago #30566
by abonki
Replied by abonki on topic How can I change the link from a mainpost?
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
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 to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
11 years 5 months ago #30568
by ivan.milic
Replied by ivan.milic on topic How can I change the link from a mainpost?
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 to join the conversation.
-
abonki
Inactive member - Topic Author
- New Member
Less
More
- Posts: 16
- Thank you received: 1
11 years 5 months ago #30569
by abonki
Replied by abonki on topic How can I change the link from a mainpost?
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
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 to join the conversation.
Time to create page: 0.161 seconds