How to remove Article ID from Joomla
Even though instructions apply to Joomla 2.5.x also we are going to deal mainly with Joomla 3.x as this is the most stable and secure version available by the time we write this how to. For everyone else who’s still on Joomla 2.5.x please don’t hesitate to ask and we will be more than happy to help you out.
There are only just a few steps, that will improve your Joomla SEO (along with good and worth to read content) and obviously a reliable web hosting plan with GOZEN Host.
First Way
Open: components\com_content\router.php in an editor or with cPanel File Manager/Editor and make the following changes:
in function ContentBuildRoute(&$query) replace line 27
$advanced = $params->get('sef_advanced_link', 0); // Make this line as follows $advanced = $params->get('sef_advanced_link', 1);
in function ContentParseRoute($segments) replace line 208
$advanced = $params->get('sef_advanced_link', 0); // Make this line as follows $advanced = $params->get('sef_advanced_link', 1);
Second way
As you probably noticed what we actually do on the first way is changing the “sef_advanced_link” value…but the way we did it leaves us with no option in case we want to reverse the changes… so what about adding a small Yes/No option to our Joomla admin panel?
So let’s see how we can achieve this!
Open the file administrator\components\com_content\config.xml and add the following code
<field name="sef_advanced_link" type="radio" class="btn-group btn-group-yesno" default="0" label="Sef Advanced Mode" description="Remove ItemID from Content URL?"> <option value="1">JYES</option> <option value="0">JNO</option> </field>
Leave a Reply