Joomla 3.x site generate url with article id if you just use joomla core sef with mod rewrite. Your url should be like Now if you want to remove article id(12) from the url so that your url looks like then you can use extensions like sh404SEF, JoomSEF and SEF Advance or can edit core file to remove the article id from url.

3rd party extensions has option to edit the url. It is simple and easy. Just edit the url and remove article id from the url and save it. Then no more article id will be in your url. They also have options to setup, so that article id will not include in the url.

There is one more way to remove article id from url. You need to assign that article to a menu link. Then article id will not be in the url.

If you want to manually remove article id from url then follow below instruction:

Go to, open the php file with your editor. Now go to line 38 and 290. There are two places where you will see a code like below:

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

Now both of the places replace with below code:

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

There is one more place where you need to edit the code. Go to line 426 and you will see a code like below:

->where($db->quoteName('alias') . ' = ' . $db->quote($db->quote($segment)));

Now in that place replace the code with below line:

->where($db->quoteName('alias') . ' = ' . $db->quote($segment));

Save the file and upload the file in your server. Remember every time you update joomla, you will have to do this task every time since joomla update will replace this file.


0 #3 dave 2015-07-28 21:28
Yep... I can confirm it works in 3.4.1, like a dream.
Been looking for ages for a simple hack like this.
Thank you, my site is now back on track!
0 #2 Super User 2014-12-02 05:54
Quoting pawandeep kaur:
It not works in joomla 3.3.6. please provide another idea

We J Download Tech just tested the method for Joomla 3.3.6 and it worked pretty fine. You don't need to change at line 426. It is already done in that version of joomla. Please follow the instruction carefully.
+2 #1 pawandeep kaur 2014-11-29 11:01
It not works in joomla 3.3.6. please provide another idea

Add comment

Security code