The page isn’t redirecting properly

New Page

  1. Hogar
  2. Center of Recursos
  3. Blog
  4. Firefox Errors
  5. How to solve the error “The page does not redirect correctly” of Firefox

How to solve the error “The page does not redirect correctly” of Firefox

Salman Ravoof, August 18, 2022

Illustration of "this page no se redirects correctly" of personas con aspecto confundido reunidas alrededor de una señal que apunta en muchas direcciones.

Compare

Circle

Do you intend to visit this web site in Firefox alone to receive a message that says “The page is not redirected correctly”?

This error message is exclusive to the Mozilla Firefox web browser and indicates another problem with a redirect on your site. Puede deberse a varias cosas, o solo a una. Te ayudaremos a resolverlo a continuation.

¿Apurado? Save this article as a PDF.

¿Cansado de desplazarse? Download a PDF version to learn more easily.

To download

In this article, you will learn how to fix “The page is not redirecting properly” error message for WordPress sites, Nginx servers, and PHP applications. The same steps may also resolve situations where you might see this message in Google Drive or on other websites you visit.

Let’s go!

Contents

  1. What does “The page does not redirect correctly” mean?
  2. Why the message “The page does not redirect correctly” appears
  3. Try These Fixes First
  4. How to Fix “Page Not Redirecting Properly” in WordPress
  5. How to fix “The page is not redirecting properly” in PHP

What does “The page does not redirect correctly” mean?

The error “The page is not redirecting correctly” appears when Firefox is stuck in an infinite redirect loop.

An example of theAn example of the “The page is not redirecting properly” error in Firefox.

For example, “Page 1” may redirect you to “Page 2”, which may redirect you to “Page 1”,… which will then redirect you directly to “Page 2”, and so on in a infinite loop.

Kinsta spoiled me so much that I now demand this level of service from every provider. We also try to be at this level with our SaaS tool support.

NEW-Suganthan-Mohanadasan-150x150Suganthan Mohanadasan from @Suganthanmn View Plans

Instead of getting stuck in this redirect loop forever, Firefox will give up and tell you “The page is not redirecting properly”.

Ce problème peut apparaître sur à peu près n’importe quel site. Vous pouvez le voir sur Google Drive ou YouTube dans certaines situations. Ou, si vous êtes un webmaster WordPress, vous pouvez le voir lorsque vous essayez d’accéder à votre site Web WordPress.

Si vous utilisez également le navigateur Web Chrome, vous avez peut-être rencontré le même problème, mais avec un nom différent : ERR_TOO_MANY_REDIRECTS. Nous avons un article complet sur la façon de corriger l’erreur ERR_TOO_MANY_REDIRECTS, et tous les conseils de cet article s’appliqueront également à l’erreur « La page ne redirige pas correctement » de Firefox, car il s’agit du même problème fondamental.

If you are using Mozilla Firefox, you may see this message. 👀 Fortunately, the solution is a solo one click away ⬇️ Haga clic para twittear

Redirect Comprobator and HTTP Status

Check cualquier URL HTTP status instantly with new redirect checker and free HTTP status. Review todos los encabezados de respuesta, los errors del cliente y las redirecciones.

Revisalo ahora CTA_Illustration Why the message “The page is not redirected correctly” appears

The root cause of this error message is always some redirect misconfiguration on the site where you’re having problems.

However, there can be many different causes of that misconfiguration, making it a bit tricky to chase down the problem.

Over the rest of this post, we’ll share some tips and tactics you can use to diagnose and fix what’s causing the error.

Try These Fixes First

In a moment, we’re going to share specific troubleshooting steps for fixing this error message on WordPress sites, Nginx, and PHP.

However, before you move to those steps, or if you’re having issues with a website that you don’t control (such as Google Drive or YouTube), we recommend performing these two basic troubleshooting steps first.

Performing these two steps will automatically fix a lot of these redirect problems. If these methods don’t fix the problem, you can continue to the more specific fixes. But if these tips do get things working again, you’ll have saved yourself a lot of time and frustration.

1. Clear Your Browser Cache

The first action you should take when encountering pretty much any error is to clear your Firefox browser cache.

Firefox (and all other browsers) will store a website’s static files on your local computer in a cache to improve performance. That way, Firefox can load these resources straight from your computer instead of re-downloading them on every new page load.

However, if these files are out of date for some reason, that can trigger many different errors, including the “The page isn’t redirecting properly” error. By clearing your cache, you’ll force Firefox to re-download new versions of the files, which can often fix the problem.

First, enter the following text in your browser’s navigation bar to open the privacy settings:

about:preferences#privacy

Or, you can manually open this area by following these instructions:

  1. Click the hamburger icon in the top-right corner.
  2. Select Options from the dropdown to open the settings area.
  3. Go to the Privacy & Security tab.

In the Privacy & Security area, find the Cookies and Site Data section and click the Clear Data button:

Accediendo a los datas of cache del navegador Firefox and haciendo click in el botón "Borrar datos".Access the Firefox browser cache data and click the “Clear Data” button.

In the popup that appears, select the Cached Web Content option and then click Clear :

Borrando the Firefox browser cache.Clear Firefox browser cache.

Maintenant, rechargez la page avec laquelle vous rencontrez des problèmes et voyez si cela fonctionne. Si ce n’est pas le cas, passez à l’étape suivante.

2. Effacer les cookies pour le site avec des problèmes

Une autre cause courante du message “La page ne redirige pas correctement” est un problème avec les cookies du site.

Comme avec le cache du navigateur, la solution consiste à effacer les cookies de votre navigateur pour le site en question.

Pour éviter de vous déconnecter de chaque site que vous visitez, vous ne voudrez effacer les cookies que pour le domaine spécifique où vous rencontrez des problèmes. Il n’y a aucun problème à supprimer tous vos cookies – c’est juste pénible de devoir se reconnecter à chaque site, c’est pourquoi il est probablement préférable d’opter pour l’approche ciblée.

To perform this targeted deletion, return to the Cookies and Site Data settings (as you did for the browser cache), but this time click the Manage Data button  :

Búsqueda de cookies para sites individuales través del botón "Administrar datos".Search cookies for individual sites via the “Manage data” button.

In the popup:

  1. Find the domain name of the site you’re having trouble with.
  2. Select it from the list.
  3. Click Delete Selected .

Cómo borrar las cookies de un solo sitio con el botón "Eliminar seleccionados".Clear cookies from a single site with the “Remove Selected” button.

In the confirmation prompt that appears, click Delete again  :

Cómo confirmar que dessea borrar las cookies para el site seleccionado.Confirm that you want to delete cookies for the selected site.

Ensuite, rechargez la page et voyez si elle fonctionne à nouveau. Notez que si le site nécessite un nom d’utilisateur/mot de passe, vous devrez vous reconnecter.

Si aucun de ces conseils ne résout le problème, vous pouvez continuer à lire pour trouver des solutions plus ciblées.

Comment réparer “La page ne redirige pas correctement” dans WordPress

Si vous voyez le message “La page n’est pas redirigée correctement” sur votre site WordPress et que les deux étapes de dépannage ci-dessus n’ont pas résolu le problème, vous devrez peut-être creuser dans certains correctifs spécifiques à WordPress.

As we mentioned above, the error results from some redirect issue on your site. On WordPress, this redirect problem could come from any of these:

  • WordPress settings (especially if you recently migrated a site or changed a critical setting)
  • Plugins
  • SSL certificates or HTTPS configuration
  • Cloudflare SSL configuration
  • Server redirects

To help you determine where you should start troubleshooting, you can use a redirect checker tool like HTTP Status and Redirect Checker to analyze what’s happening in your redirect loop. Just enter the URL of the site you’re having issues with, and the tool will break down the redirect chain by each step.

For example, if you see that your site is redirecting back and forth between the HTTP and HTTPS versions of the site, that’s a pretty good sign that the problem has something to do with HTTPS or SSL usage on your site, so you should start your troubleshooting there.

If you don’t see any pattern, you can move through the below troubleshooting steps in order.

Check Your HTTPS Settings

Your site’s HTTPS settings can be a common source of redirect misconfigurations. There are a few potential issues here:

  • Forcing HTTPS without installing an SSL certificate: If you try to force HTTPS usage without installing an SSL certificate, it will trigger this error. If you’re hosting at Kinsta, we’ve written a guide on using SSL certificates. Otherwise, consult your host’s support for help.
  • Using an SSL plugin: Whenever possible, we recommend updating your hard-coded links to use HTTPS instead of using an SSL plugin like Really Simple SSL. You can do this by running a search and replace on your site’s database. If you’re a Kinsta client, reach out to support, and we can do this for you.
  • Tener una redirección de HTTP a HTTPS mal configurada: la redirección forzada de todo el tráfico HTTP a HTTPS es buena, pero querrá asegurarse de haber configurado correctamente la redirección .

Comprobar la configuración SSL de Cloudflare

Si configuré sur le site de WordPress pour utiliser Cloudflare, il est possible que le message d’erreur se produise lors de la configuration de SSL de Cloudflare. De manière générale, une erreur s’est produite lors de l’installation d’un certificat SSL sur le serveur de votre site, mais aujourd’hui, vous utilisez la configuration de SSL flexible de Cloudflare.

Pour cette solution, choisissez le mode de cifrado Flexible SSL/TLS de Cloudflare sur l’option Complète .

Open the Cloudflare control panel and use the SSL/TLS pestaña. Luego, cambie el modo de encriptación SSL/TLS de Flexible a Completo ( o Completo (stricto) si puede):

How to change Cloudflare's SSL configuration to "Completo".Cambiar Cloudflare’s SSL configuration has “Completo”.

Information

If you’re using Kinsta’s Cloudflare-powered content delivery network, you don’t have to worry about that because we set it all up for you.

Check your WordPress site settings

If you can still access your WordPress dashboard, you should check your site’s URL settings ( Settings > General ).

These should match each other. Additionally, if you have configured a redirect from WWW to non-WWW (or vice versa), you must ensure that your site settings match the permanent URL you have configured with your redirect.

For example, if you are setting up a redirect to send all traffic from https://yoursite.com to https://www.yoursite.com, you should ensure that your WordPress site address is https://www .your site. com.

Where to find your WordPress site address.Verification of your WordPress site address.

If you can’t access your WordPress dashboard, you can manually override these values ​​by editing your site’s wp-config.php file. You can access and manage this file by connecting to your server via FTP.

Add the following code snippet to the file, making sure to replace the example URLs with your site’s actual URL:

set(‘WP_HOME’,’https://yourdomain.com’); set(‘WP_SITEURL’,’https://yourdomain.com’);

You can read more about changing your WordPress URL for a closer look at these and other methods.

Temporarily disable WordPress plugins

Dans certaines situations, un plugin WordPress peut provoquer l’erreur “La page n’est pas redirigée correctement” s’il déclenche une boucle de redirection pour une raison quelconque. Ce problème peut être dû au plugin lui-même ou à sa compatibilité (avec un autre plugin, thème ou autre code personnalisé).

Pour tester rapidement s’il s’agit d’un problème de plugin, vous pouvez essayer de désactiver tous vos plugins. Si votre site commence à fonctionner une fois que vous les avez désactivés, vous saurez que l’un de vos plugins est à l’origine du problème.

Si vous pouvez toujours accéder à votre tableau de bord WordPress, vous pouvez désactiver vos plugins depuis la zone Plugins .

Si vous ne pouvez pas accéder à votre tableau de bord, vous pouvez désactiver vos plugins via FTP :

  1. Connect to your server using FTP/SFTP and your favorite FTP client.
  2. Navigate to the wp-content folder.
  3. Rename the plugins folder to plugins_old .
  4. Open your site and see if the problem persists.

Manual deactivation of plugins via FTP.Manual deactivation of plugins via FTP.

If your site starts working, log in to your WordPress dashboard. Once you’ve logged in, you can go back to your FTP client and rename the folder back to plugins .

When you go to the Plugins area in your WordPress dashboard, WordPress will have deactivated all your plugins. You can then reactivate them one by one via your dashboard, testing your site again each time until you find the plugin that’s causing the problem.

Check Redirects on Your Server

If you’ve set up misconfigured redirects on your server, those could also be causing issues with redirect loops.

How you’ll address this depends on whether your host uses the Apache or Nginx web server. Kinsta only uses Nginx, but some other web hosts use Apache.

Apache .htaccess File

With Apache, you can set up redirects by using the .htaccess file. However, a misconfiguration here can trigger the error message in Firefox.

To fix this, you can tell WordPress to generate a new .htaccess file:

  1. Connect to your server using FTP.
  2. Find your existing .htaccess file — it should be in the root folder.
  3. Rename the current file to .htaccess_old to disable it (while still keeping it around as a backup).

At this point, you can try to reaccess your site. If it’s working, open your WordPress dashboard and go to Settings > Permalinks. Then, click Save Changes (without changing any settings). This setting will force WordPress to generate a new .htaccess file.

Si vous ne pouvez pas accéder à votre tableau de bord WordPress, vous pouvez recréer manuellement ce fichier en :

  1. Création d’un nouveau fichier nommé .htaccess à l’aide de votre client FTP.
  2. Ajout de l’extrait de code ci-dessous au fichier.

# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ -[L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress

Nginx .conf file

If your host is using Nginx, it might be a little more difficult to troubleshoot because the contents and location of the configuration file – normally nginx.conf on Nginx servers – varies depending on the hosting provider. For this reason, we recommend that you ask your support for help.

If you’re hosting with Kinsta, you can access the Redirects tool in your site’s dashboard to see if you’ve accidentally set up a misconfigured redirect. Or contact our support team and we’ll be happy to check it out for you.

An example of a misconfigured redirect in Kinsta's redirect tool.An example of a misconfigured redirect in Kinsta’s redirect tool.

If you’re still having issues with the “The page is not redirecting properly” in Nginx and editing the .conf file didn’t fix them, the most likely issue is that you added a series of rewrite directives resulting in an infinite redirect loop.

This problem can occur with any rewrite rule, but it is expected that when writing rules, it changes from HTTP to HTTPS or redirects WWW to non-WWW (or vice versa).

If you recently added new rewrite rules to your nginx.conf file , those rules are likely to blame. Try deleting them and see if that fixes the problem. If so, you know you have a problem with the syntax of the rewrite rule you added.

How to fix “The page is not redirecting properly” in PHP

If you see “The page is not redirecting properly” in PHP, two common troubleshooting steps are:

Check your redirects

If you have configured a redirect using PHP, for example via the header() function , this can be a common source of redirect issues.

Your first step should be to debug the function and make sure you haven’t configured it to create a redirect loop. Follow the steps we have already discussed to fix misconfigurations.

Check connection/session issues

Many PHP problems with this error result from problems with login and session behavior – for example, a function that checks whether a user is logged in or not, then redirects them to the login page if they are not.

If you don’t configure session checks correctly, you can essentially trap users in an infinite redirect loop.

Have you seen this message before? 😅 Learn how to fix it for WordPress, Nginx and PHP sites here ⬇️Click to Tweet

Summary

The “Page is not redirecting correctly” error is a Mozilla Firefox-specific error message that appears when a page encounters an infinite redirect loop. This is the same as the ERR_TOO_MANY_REDIRECTS error message in Chrome.

To resolve this error, you should start by trying two things:

  1. Clear your Firefox browser cache.
  2. Clear cookies from the site where you see the error.

If you have a WordPress site and the error message persists after trying these two steps, you can follow the WordPress-specific steps in this guide to investigate the issue further. And make sure to follow redirect best practices to minimize your chances of encountering this error in the first place.

Do you still have questions about how to fix “The page is not redirecting correctly” error in WordPress or other situations? Leave a comment and let us know!

Save time, money and maximize site performance with:

  • Instant help from WordPress hosting experts, 24/7.
  • Cloudflare Enterprise integration.
  • Global audience with 35 data centers around the world.
  • Optimized with our built-in application performance monitoring.

All this and more, in one plan with no long-term contracts, assisted migrations and a 30-day money-back guarantee. Check out our plans or talk to sales to find the plan that’s right for you.


Video The page isn’t redirecting properly

Related Posts

Free chat room code for my website

Contents1 How to set up a free chat room on the website.2 3 comentarios2.1 Trackbacks/Pingbacks2.2 Submit a Comment Cancel reply3 How to Create a Chat Room Website…

Background image full screen css

Contents1 Cómo – Full Page Image1.1 Example1.2 Example2 CSS background image tamaño tutorial: how to codify a complete page background image3 Perfect Full Page Background Image3.1 Méthode CSS géniale,…

WordPress leverage browser caching

Contents1 Aproveche el almacenamiento in hidden del navegador1.1 Will it works for my website?1.2 Where are plugin options1.3 Some JavaScript files still display under Leverage Browser Caching1.4…

WordPress post to facebook page

Contents1 How to Automatically Post to Facebook from WordPress1.1 Download Now: How to Launch a WordPress Website [Free Guide + Checklist]1.2 1. Create an IFTTT account.1.3 2….

Download images from wordpress media library

Contents1 How to export your WordPress media library1.1 Download maintenant : How to launch a WordPress website [Free Guide + Checklist]1.2 How to export your WordPress media…

WordPress single post template

Contents1 How to Create Custom Unique Post Templates in WordPress2 Post Template Files2.1 author.php2.2 Fecha.php3 Handbook navigation4 How to Create Custom Single Post Templates in WordPress5 Video…