I followed this tutorial (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: 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

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

NameVirtualHost Listen

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

<VirtualHost> ServerName DocumentRoot /var/www/parisasiatique/ </VirtualHost> <VirtualHost> ServerName Redirect permanent / </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 :, and

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

What can I do to solve the issue ?


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/ <br># <VirtualHost> <br># ServerName <br># DocumentRoot /var/www/parisasiatique/ <br># </VirtualHost> <br># <VirtualHost> <br># ServerName <br># Redirect permanent / <br># </VirtualHost>