I'm trying to migrate a Joomla 2.5.6 site from one server to another. I have used scp to copy the files one for one across and taken a mysqldump of the database so I'm sure that the new server has a clone of the code.
The differences that I can identify with the original server are:
- It had PHP5.5 installed (I'm using 7.1)
- It used Apache 2.2.14 (I'm using 2.4.18)
- It was not served on HTTPS (I'm using a valid LetsEncrypt cert)
When I load the home page I get an infinite loop of 303 errors, which at first seemed to be related to the languagefilter plugin, but also seem to be related to SEF.
SEF off and no languagefilter: Page loads, links broken SEF off and languagefilter present: Infinite redirect loop
I'm unable to login to the admin dashboard so I can't use that to disable stuff. I have edited the SEF setting in the global config and when it is turned off the site shows (with the wrong template).
My Apache vhost looks like this:
<IfModule mod_ssl.c> <VirtualHost *:443> DocumentRoot /var/www/html/fmjock ServerName fmjock.mystery.co.za <Directory "/var/www/html/fmjock"> AllowOverride All allow from all Options +Indexes </Directory> SSLCertificateFile /etc/letsencrypt/live/fmjock.mystery.co.za/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/fmjock.mystery.co.za/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost> </IfModule>
I verified that Apache2 is respecting the .htaccess file and that it's the same as the one from the original server. The only file that is different is the global configuration where I changed the database details.
Edit: This happens with either HTTP or HTTPS and it's not a 301 redirect from non-secure to secure, wget shows that it's returning 303:
root@sites-available# wget fmjock.mystery.co.za --2017-12-14 07:50:57-- http://fmjock.mystery.co.za/ Resolving fmjock.mystery.co.za (fmjock.mystery.co.za)... 22.214.171.124 Connecting to fmjock.mystery.co.za (fmjock.mystery.co.za)|126.96.36.199|:80... connected. HTTP request sent, awaiting response... 303 See other Location: http://fmjock.mystery.co.za/en/ [following]