DNS ERR_TOO_MANY_REDIRECTS.

May 11, 2014 2k views
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 ServerName parisasiatique.com DocumentRoot /var/www/parisasiatique/ ServerName www.parisasiatique.com Redirect permanent / http://parisasiatique.com/ Here is one of .htaccess for /var/www/parisasiatique/ # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] # 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.
1 Answer
Sorry, I'm doing it again for /etc/apache2/sites-available/parisasiatique.com
#
# ServerName parisasiatique.com
# DocumentRoot /var/www/parisasiatique/
#
#
# ServerName www.parisasiatique.com
# Redirect permanent / http://parisasiatique.com/
#
Have another answer? Share your knowledge.