Skip to main content
6 votes
Accepted

Create a link from Backend to SEF Path in Frontend

Since 3.9 there's Joomla\CMS\Router\Route::link() method which takes client (site or administrator) as first argument. $link = 'index.php?option=com_content&view=article&id=1'; echo '<a ...
Sharky's user avatar
  • 11.5k
5 votes
Accepted

How do i remove the id from Joomla 3 URLs using code

Good question. It looks likely that the new Joomla router held over until Joomla 3.6 will fix this issue. In the meantime, there is a $15 extension, SEF Wizard for Joomla that, "removes IDs from the ...
Neil Robertson's user avatar
4 votes

How to configurate Joomla or Apache for v1 SEF Urls?

I managed to piece together a solution without using .htaccess, though I'm interested in a cleaner solution if somebody has one. I created a system plugin that really does nothing in the conventional ...
GDP's user avatar
  • 7,715
3 votes
Accepted

Supporting SEF URLs in custom component

In the old days, the router.php file contained functions: BuildRoute and ParseRoute. Nowadays, if you look at the router.php of the banners extension for example, you will see a class called ...
itoctopus's user avatar
  • 3,226
2 votes

How does Joomla! URL Re-writing works?

The following are sequence of steps occur when you invoke a url: Joomla will split the url into parts separated by "/", each part (apart form website name itself) is alias of a menu item, an article ...
Nagarjun's user avatar
  • 3,001
2 votes

Using SEF URLs breaks all templates

I found the problem: The templates were not at all responsible. I am using the JCH Optimize plugin. In the Basic Options tab, there is a Use url rewrite parameter. That was the problem. When I ...
Leonardo Pinheiro's user avatar
2 votes

SH404SEF : How to redirect a URL to home?

sh404SEF developer here The answer by FFrewin above is not correct. To redirect some URLs to home page, you simply: Click on the "Home page meta" toolbar button on any page of sh404SEF control panel ...
Weeblr's user avatar
  • 51
2 votes
Accepted

Absolute SEF url with JRoute

You could try this way: $itemid = 164; $application = JFactory::getApplication(); $menu = $application->getMenu(); $item = $menu->getItem( $itemid ); $link = new JURI( $item->link ); $link-&...
FFrewin's user avatar
  • 19.7k
2 votes

Is it safe to use `Use URL Rewriting` option?

When SEF is enabled on a Joomla website, the old non-sef urls still work normally so search engines will still be able to find the pages whether they use the SEF or non-SEF url. These days, Google ...
Neil Robertson's user avatar
2 votes

Article appears even outside given path

This is a problem with the Joomla content router. Specifically, in the following code: if (!$advanced) { $cat_id = (int) $segments[0]; $article_id = (int) $segments[$count - 1]; if ($...
itoctopus's user avatar
  • 3,226
2 votes
Accepted

Joomla 2.5.6 infinite 303 loop (SEF)

The problem is likely your HTTPS redirect. You are likely redirecting to HTTPS at the beginning of your .htaccess file, and later redirecting to HTTP. Another scenario is when your Joomla website is ...
itoctopus's user avatar
  • 3,226
2 votes
Accepted

Menu links working only for logged in users

It's probably best to run a backup before making any changes. SEF To narrow down the problem, try disabling URL Rewriting and SEF and renaming .htaccess to .htaccess.old. If this helps, try re-...
Neil Robertson's user avatar
2 votes
Accepted

How to disable Joomla routing by Article ID with any alias but use exact alias only

May not be practical for blog articles, but a fixed url can be achieved via menu items: https://docs.joomla.org/Search_Engine_Friendly_URLs#Limitations Otherwise, if I see it correctly, you have to ...
astridx's user avatar
  • 449
2 votes

Update SEF URL to change what is output

Joomla works with internal (for example /index.php?option=com_content&view=article&id=42) and external SEF URLs (/some-name). The SEF URLs are created via the menu, and the "alias" ...
pe7er's user avatar
  • 2,068
2 votes

J4 component URL not SEF

Solution found, all details on https://forum.joomla.org/viewtopic.php?f=831&t=996848 To create a routing in J4 with same behavior that J3, you need to create 4x files : /com_componentname/src/...
Yann's user avatar
  • 41
1 vote
Accepted

Is it safe to use `Use URL Rewriting` option?

Yes it is safe - its built into the joomla core to do so. All you need to do is rename the htaccess.txt to .htaccess and then enable it in the joomla global configuration screen.
Brandon's user avatar
  • 88
1 vote

How to change SEF urls to remove item view from url?

Take a look into the com_content router, category blog view works like that, shows a list of articles under domain.com/blog and the links are generated like domain.com/category/1-my-first-article But ...
Dennis Heiden's user avatar
1 vote

How do i remove the id from Joomla 3 URLs using code

I use Direct Alias Pro. It's $24, works like a charm and is lightweight without all the other random features. https://alterbrains.com/joomla-extensions/seo/direct-alias-pro
YellowWebMonkey's user avatar
1 vote

K2 URLs not working after migration to Joomla 3

When in K2 (in the Joomla admin), click on Parameters on the top right, and then click on the Advanced tab. Under Advanced SEF Settings, choose "Yes" next to Enable advanced SEF for K2 URLs and then ...
itoctopus's user avatar
  • 3,226
1 vote

How to remove the 'index.php' from URL's?

If you're using the nginx web-server, then you can use the following snippet for the nginx.conf configuration file where your Joomla! site is served from (basically, just add the if-condition after ...
cnst's user avatar
  • 111
1 vote

Does it influence SEO if I make short url for all pages in my site?

1) I believe it's not OK, but acceptable and it's up to you to decide. I mean SEF URLs are good for SEO. And SEF mostly if not only stands for human readable URLs. And short URL's are not. So they are ...
Alexandr's user avatar
  • 1,130
1 vote
Accepted

How to remove index.php from URLs with enabled URL Rewriting on localhost

check if apache rewrite_module ia active in your localhost
Piero Marsilio's user avatar
1 vote

What is the correct (preffered) entry in SEF plugin for Site Domain

That question has been asked so many times and created very long arguments that were never won by anyone. My thought: Take a look at google's website, and see if they use www, and do what they're ...
itoctopus's user avatar
  • 3,226
1 vote

Redirect or add missing category alias to URL in Joomla 3.6

You could use the core Joomla! Redirects component. Documentation: https://docs.joomla.org/Help36:Components_Redirect_Manager
N.Fury's user avatar
  • 13
1 vote

Add querystring parameters and generate a SEF URL

Looking at the router implementation of com_jumi here https://github.com/BonavalMultimedia/com_jumi/blob/master/com_jumi_bnvl/router.php for me it seems it doesn't handle extra parameters when sef is ...
Pep Lainez's user avatar
1 vote
Accepted

Weird chars in the beginning of SEF url

I found the answer. In my router file I was including model. And it's model file had BOM sygnature included. It was causing this error...
Tomasz Omeljaniuk's user avatar
1 vote

Safe SEF URL to a subdomain

I am not sure what you mean with the Multi-sites but 3 installations for 3 sites isn't considered a multi-sites scenario. Probably you have 1 Joomla website installed on the root of your hosting ...
FFrewin's user avatar
  • 19.7k
1 vote

[com]BuildRoute(&$query) function is called with no $query['view'] member passed

BuildRoute function gets whatever the information you will pass to it. How you are creating your urls in your component? Like this? $url = JRoute::_('index.php?option=com_mycomponent&view=myview&...
Nagarjun's user avatar
  • 3,001
1 vote

Fatal error: Call to a member function getType() on a non-object in /plugins/system/sef/sef.php on line 38

Have you recently updated Joomla to Joomla 3.5.1? This error is typically caused by a botched update (see: http://www.itoctopus.com/resolving-the-dreaded-call-to-a-member-function-getdocument-on-a-non-...
itoctopus's user avatar
  • 3,226
1 vote

SEF urls without article ID causes 404 article not found error

I would say (even though you're saying that you already checked that), that the problem is caused by duplicate aliases. I recommend you check that the alias does not exist twice in the #__content ...
itoctopus's user avatar
  • 3,226

Only top scored, non community-wiki answers of a minimum length are eligible