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/
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
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.
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!
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>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.