How I can remove the suffix .html in joomla 3 in my menu link even if I turn on Add URLs suffix.

I want to remove in one specific article/page only. Thank you for help.


Note: This solution is not recommended because it hacks core Joomla library.

Assume that the alias of your menu item is about. Open the file


and around the line #116, find this line:

if ($app->get('sef_suffix') && !(substr($route, -9) == 'index.php' || substr($route, -1) == '/'))

then replace it with this one:

if ($app->get('sef_suffix') && !(substr($route, -9) == 'index.php' || substr($route, -1) == '/') && $route != 'index.php/about')

It is obvious that you must replace about with your menu item alias in the above line.

  • Hi Farahmand, Great, thanks a lot, it works perfectly. As you said it is not recommended but I think this is the answer for my problem. Dec 29 '14 at 7:02
  • You're welcome Dennis - Glad it helped!
    – Farahmand
    Dec 29 '14 at 7:55

I'm not sure why you would want to remove the extension for a single menu item, but you might be able to do it using your .htacces file:

RewriteEngine On 
Options +FollowSymLinks
RewriteRule ^/about.html$ /about [L]
  • Hi johanpw, Thank you for the time answering my question but when I try it is not working by the way nice idea. Dec 29 '14 at 7:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.