Categories

Featured templates

Joomla 3.x. How to remove the id from the article URL

Guillaume Dumas August 19, 2015
Rating: 5.0/5. From 3 votes.
Please wait...

This tutorial is going to show you how to remove id from the article URL in Joomla 3.x template.

Joomla 3.x. How to remove the id from the article URL

By default, Joomla article has its id prepended to the slug:

Joomla_3._How_to_remmove_the_id_from_the_article_URL-1

In order to remove the id from the article URL, you should perform the following:

  1. Open up the components/com_content/router.php file in any code editor.

  2. Locate the following function call:

    $advanced = $params->get('sef_advanced_link', 0);
    			

    and replace it with

    $advanced = $params->get('sef_advanced_link', 1);
    			

    There are two occurrences of that call (lines 34 and 287):

    Joomla_3._How_to_remmove_the_id_from_the_article_URL-2

  3. Save the changes and upload the file to the server. Your article URL now does not contain the id:

    Joomla_3._How_to_remmove_the_id_from_the_article_URL-3

Feel free to check the detailed video tutorial below:

Joomla 3.x. How to remove the id from the article URL

Fresh Joomla Templates
This entry was posted in Joomla! Tutorials and tagged article, ID, joomla, url. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket