Sometimes I include a long string like a path to a file and it overflows its container. this is specially bad in mobile, where the screen is often narrow. it also may trigger a 'Content wider than screen' warning from Google Search Console. In my case, my container is an article HTML element. I just set the following CSS property: 

.articeoverflow-wrap: break-word;

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