Joomla 3.x SEF URLs without article ID and containing only numbers

311 views Asked by At

I would like to remove the article ID from Joomla SEF URLs. For that I found a mod which works only if the SEF URLs containing at least one character other that numbers. But I need numbers only SEF URLs for my articles.

For example: http://something.com/category/1234567890 But if I do this joomla returns 404 article not found error If I put any other char in like this http://something.com/category/1234567890-1 than it works.

How can I make it work with numbers only?

Oh and the mod which I tried is simply changing the 0 to 1 in the com_article/router.php in this code $advanced = $params->get('sef_advanced_link', 0);

1

There are 1 answers

0
newhere On

Go to file components\com_content\router.php

and comment the folowing code :

    /*if (strpos($segments[0], ':') === false)
        {
            $vars['view'] = 'article';
            $vars['id'] = (int) $segments[0];

            return $vars;
        }*/

Hope that work for you