Question

DNS ERR_TOO_MANY_REDIRECTS.

Hi,

I followed this tutorial https://www.digitalocean.com/community/articles/how-to-migrate-wordpress-from-shared-hosting-to-a-cloud-server-with-zero-downtime (Step 6. Test your Blog) to see if everything is fine before updating my dns settings (Step 7.)

I’m getting an ERR_TOO_MANY_REDIRECT from my browser when trying to reach one of my 3 websites on DigitalOcean after updating my hosts file on my computer with the droplet IP (IP Address: 188.226.255.80). I guess there is something wrong with the htaccess file and the virtual hosts.

I have 3 wordpress sites duplicated from another hosting, the configuration includes LAMP on Ubuntu 12.04, varnish, Mod_Rewrite, UFW, swap memory, phpmyadmin, pagespeed

I followed this tutorial to have multiple virtual hosts http://www.ma-no.org/en/content/index_install-and-configure-varnish-with-apache-multiple-virtual-hosts-on-ubuntu-12-10_1689.php

In /etc/apache2/ports.conf I have :

NameVirtualHost 127.0.0.1:8080 Listen 127.0.0.1:8080

Here is one of the 3 websites /etc/apache2/sites-available/parisasiatique.com

<VirtualHost 127.0.0.1:8080> ServerName parisasiatique.com DocumentRoot /var/www/parisasiatique/ </VirtualHost> <VirtualHost 127.0.0.1:8080> ServerName www.parisasiatique.com Redirect permanent / http://parisasiatique.com/ </VirtualHost>

Here is one of .htaccess for /var/www/parisasiatique/

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

The 3 websites have the same issue : http://www.parisasiatique.com/, http://www.onbusinessplan.fr/ and http://www.mytourofeurope.com/

DO support is saying that the URL bar switches from www.mytourofeurope.com and mytourofeurope.com, as it goes back and forth between the two.

What can I do to solve the issue ?

Thanks.


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Sorry, I’m doing it again for /etc/apache2/sites-available/parisasiatique.com <br># <VirtualHost 127.0.0.1:8080> <br># ServerName parisasiatique.com <br># DocumentRoot /var/www/parisasiatique/ <br># </VirtualHost> <br># <VirtualHost 127.0.0.1:8080> <br># ServerName www.parisasiatique.com <br># Redirect permanent / http://parisasiatique.com/ <br># </VirtualHost>