This issue is found on some themeforest templates. the file [root]/templates/[templatename]/error.php has the following code:

if (($this->error->getCode()) == '404') {
header('Location: index.php/404');

Redirect works fine for URLs with the form

If the visitors type a 2 levels URL like, the redirect looks for which doesn't exist and causes an infinite redirect loop which Chrome describes as:


This page isn’t working redirected you too many times.


  • Try clearing your cookies.

The solution is to edit the code and put the full, absolute URL for the error page:

if (($this->error->getCode()) == '404') {

Please notice this URL is for Joomla sites with the following SEO settings in their Global Configuration:

  • Search Engine Frinedly URLs YES
  • Use URL rewriting YES
  • Add suffix to URL NO
  • Unicode aliases NO

Please check the actual absolute URL for your site before doing this.

Back to Top