7
votes
Accepted
How to assign a module to different pages
To assign modules to pages;
Joomla 2.5 instructions
Log into the Joomla administrator area of your site
Select the Extensions menu and Module manager menu
Open the module/menu you have created
...
6
votes
Accepted
Why Joomla 3 add Canonical tag to current page and made it unindexable?
Solutions:
One option is to prevent Joomla from creating canonical URL's, by creating an override for the file /plugins/system/sef/sef.php on line 51 (better no canonical then an incorrect one)
If ...
6
votes
Accepted
Use Joomla redirect component to fix broken URLs
With the below .htaccess rule you can redirect all pages from a url with the pattern of:
https://www.portal-gestao.com/whatever/whatever/9999-title-of-the-page
to a new url of :
https://www....
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 ...
4
votes
Google indexing k2 urls wrong
First off, you have duplicate content (which as you have noticed is hurting your rankings), even though it is using the canonical attribute. I Googled your site, and both links lead to the same exact ...
4
votes
Accepted
How can I change a SEF URL to display another template?
Instead of $_SERVER['REQUEST_URI'], you can rely on JUri::root()
template parameter can not be added concatenating it with &. It has to be ? ... but it depends on the Url query. Thus, you need a ...
4
votes
Why Joomla 3 add Canonical tag to current page and made it unindexable?
This is to clear any misconception about having a self-referenced Canonical Link Element, as using one is not an issue, and how could it be - to say that the page you are viewing at this url is ...
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 ...
4
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 ...
3
votes
Accepted
Safe SEF link to menu item
The solution is quite simple:
Instead of using the alias, create a link with the menu item ID:
<a href="index.php?Itemid=XX">Contact us</a>
where XX is the ID of your menu item. The ID ...
3
votes
Using JRoute in the backend? Almost figured it out, help needed
Here is how I ended up getting it to work:
$live_site = substr(JURI::root(), 0, -1);
$app = JApplication::getInstance('site');
$router = &$app->getRouter();
$url = $router->build($...
3
votes
Using JRoute in the backend? Almost figured it out, help needed
JRoute is not reliable on the backend. Your approach may work on a simple install, but if you have a third-party SEF plugin, or even some slightly unorhodox routing in third-party components, this ...
3
votes
How to assign a module to different pages
You can use Advanced Module Manager. With Advanced Module Manager you have the possibility to assign modules to just about anything you want.
3
votes
How to remove index.php from url in multilanguage site
Firstly, in the Global Configuration, set Use URL rewriting to Yes. This is the option to remove the index.php from the URL.
Once done, simply rename your htaccess file to .htaccess, which you appear ...
3
votes
Removing category/article numbers in SEF
Since this is one of the most common questions around Joomla, I though to share a new extension I came across that deals with it.
Plugin: Direct Alias Pro
For those people that don't want to mess ...
3
votes
Removing category/article numbers in SEF
If you create a menu item for each of these then the menu item alias is used for the URL instead.
The menu you create these links in doesn't have to be published on your site, it's enough that the ...
3
votes
Accepted
Search component pointing to wrong SEF URLs in Joomla 3
The best practice to avoid any unpredictable urls is to create "Articles - Category List" or "Articles - Category Blog" menu items for all your top level article categories. This way all your articles ...
3
votes
Use Joomla redirect component to fix broken URLs
What you could do is use Joomla's Redirect Manager to redirect the old URL to the new one.
In the Joomla backend, go to:
Components >> Redirect >> New
In the Source URL field, enter the old URL and ...
3
votes
Use Joomla redirect component to fix broken URLs
You can use JOOMSEF component, which is for SEO purpose and more of this extension is free.
Also in that component you have option to remove category and menu names from url and also you can ...
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 ...
2
votes
Accepted
AceSEF exclude urls from creation/ hide in sitemap
Apologies for the slow response. I found that there are two ways to exclude items from both AceSEF urls and Sitemap and there is a further way to hide sitemap entries:
Exclude whole components from ...
2
votes
Why Joomla 3 add Canonical tag to current page and made it unindexable?
The solution that worked for me is the same as Robert Went has on his blog.
Here it his:
$doc = JFactory::getDocument();
foreach($doc->_links as $k => $array){
if($array['relation'] == '...
2
votes
How to remove index.php from url in multilanguage site
In my experience, the .htaccess file should work regardless of multi/single language site settings. The most common reason for 404 errors on any page BUT the homepage is an error in .htaccess. There ...
2
votes
Change folder name in URL
I would do this instead:
RewriteCond %{REQUEST_URI} /images/
RewriteRule ^images/(.*) /downloads/$1 [L,R]
I think REQUEST_URI will be a better check than THE_REQUEST for you.
Reference: http://...
2
votes
Accepted
Using tmpl=component with SEF URL
Did you try it with JRoute?
<a href="<?php echo JRoute::_('index.php?option=mycomponent&view=thisview&tmpl=component&return=' . $this->return); ?>">
2
votes
Accepted
Facebook change thumbnail, tittle, secription when using SEF and non SEF URL of the same page
Non SEF Urls can be troublesome. Query parameters are usually associated with tracking and usually discarded by Facebook.
You can test how Facebook scrappes your site with the Debugger tool: https://...
2
votes
Remove index php add language code in the url
Enable URL Rewriting
What you have to do, is to enable URL rewriting. It can be done in the backend:
Global Configuration -> Site -> Use URL Rewriting (set to yes)
or directly in the ...
2
votes
Remove index php add language code in the url
It should not be necessary to modify/add your .htaccess rules in order to remove index.php from your url, it usually works out of the box if you enable URL Rewriting in the Joomla Configuration, and ...
2
votes
Accepted
.htaccess and localhost re-direct issue
The rewrite base path should have the path of the folder where the Joomla site is installed. That is because in your current scenario, Joomla does not reside in the root folder.
So, if Joomla is ...
2
votes
Accepted
How to remove IDs from SEF URL in Joomla?
I found the solution with the help of @Farahmand, here it is:
<?php
defined('_JEXEC') or die;
function empresaBuildRoute(&$query) //Esta función divide la url y se trae las variables.
{
$...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
sef × 113joomla-3.x × 49
url × 36
.htaccess-configuration × 15
jroute × 13
seo × 12
redirect × 10
non-sef-url × 9
k2 × 8
component × 7
php × 6
router × 6
joomla-3.4 × 5
custom-component × 5
sh404sef × 5
joomla-2.5 × 4
templates × 4
tags × 4
development × 3
articles × 3
joomla-3.3.x × 3
menu-item × 3
virtuemart × 3
joomla-4.x × 3
multilingual × 3