The Complete Guide to Joomla Aliases

The Complete Guide to Joomla Aliases

In "The Complete Guide to Joomla Search Engine Friendly URLs", you've seen how to turn Joomla's default Search Engines Friendly URLs into URLs that are shorter, easier to remember, and easier to read.

What you are going to learn in this post is how these URLs are actually set up in your Joomla site. You will take a look at how to work with the alias feature that appears in various places in your Joomla site.

For example, the URL of this Getting Started page is getting-started, as you can see in the image below:

getting started url

Why is that the URL? Could we change it to simply started? Or simply to getting? Or could we change it to something else entirely? The answer in the Joomla admin area is the alias feature.

If you go to the Joomla admin area, you will see alias in quite a few places. For example, we have our "Getting Started" article and right next to the article's title, you are going to see the getting-started alias.

getting started alias

The alias feature is going to appear in each of your Joomla articles. In fact, it is visible in the main Articles screen here.

aliases on main article screen

The alias will appear for categories.

category alias

You can see the alias is the same as the title of the category here but you can always change it as you wish.

Aliases also appear for menu links.

aliases in menu items

Each of the menu links we have for articles has an option to have an alias as well.

There is an alias right next to the title, this time - for the menu.

getting started menu item backend

You may ask a question, "If I have different aliases in different places, which one is Joomla going to use?"

The answer is nearly always going to be the menu. The menu link that goes to a page, is going to be the most important as far as Joomla is concerned.

If I am faced with the question of wanting to control the URL of my "Getting Started" article, the most likely place that I am going to be able to change it is via its menu link here:

menu item frontend 

If I go to Menus and Main Menu, I am going to see my "Getting Started" article.

getting started menu item backend

 

I click on the menu link. Joomla will open the Menus: Edit Item screen with the "Getting Started" menu item.

alias field for getting started menu item

 If I remove the -started from the alias, that is going to be the new URL when I click on this menu.

getting alias

If I go back to my Home page, the URL of the "Getting Started" page has changed as well.

new frontend url getting

The menu links are to a large extent in control of the URLs of your pages.

This applies to the Top menu links. It also controls the sub-menu links as well.

I have Article 1, Article 2 and Article 3 as drop-down menus. If I visit Article 1, you will see that the URL of this page is controlled by the menu. It's now simply getting.

getting in url for article 1

 

If I go back to my Menus, Main Menu and change the alias of Getting Started back to what it was originally, that is going to impact the other menus as well.

back to getting started top menu alias

The getting-started is now the top URL and also the URLs of the drop-downs underneath have changed.

article 1 with getting started url

 

So, the menu link is the most important thing driving the URLs in your Joomla site. If there is no menu leading to a page, then Joomla will fall back on the content and the alias inside each article.

We've seen that the alias is responsible for the URLs in Joomla and that the menu link is the most important of all the aliases.

The aliases are available for the menus, the articles, and the article categories. Most components will have aliases too.

If you use Joomla's Contacts component, then all of the users or all of the contact forms that you set up in this component, will have their own alias.

alias for contacts component

If you add newsfeeds to your site, each of them will have their own alias.

If you use tags to categorize your content, they will all have aliases for each tag.

tag with alias

In the example with tags on the default site that we have here I click on the Joomla link.

if I click on joomla

Then all of the articles which have the joomla tag, are now available at this particular URL using the joomla alias.

tag alias joomla in URL


Additional Reading


What's Next?

Save $1,000's when you sign up to Joomlashack's Everything Club.

You will get access to all our 32 extensions, and legendary support!

  Click here to join the Everything Club