Urls messed up after migration

Joomla versions 2.5, 1.7 and 1.6 are all end-of-life since December 31st 2014 and are no longer supported. Please use Joomla 3.x instead.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
simonedev
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Mar 31, 2020 12:41 pm

Urls messed up after migration

Post by simonedev » Tue Mar 31, 2020 1:07 pm

Hi there.
I'm trying to migrate a site to a new domain. The person hosting the site now is not very collaborative, so I have no access to the real site.
I just received the dump of the DB together with all Joomla e Virtuemart files.

My problem is that, once I migrated the site, all URLs seems not working fine. There are several issues with the position of the language code and with some redirections.

So let me explain...

The old store url is something like this: http://www.old-domain/webshop/<lang_code>

My new (test) installation url should be like this: https://www.new-domain/subdomain/webshop/<lang_code>
(I have to use a subdomain because my test server is hosting other sites...)


I modified the configuration file, updating all DB, temp and logs data.

When I try to access the new installation, it's pretty evident that something has gone wrong with the url rewiting

These are my tests and results:

https://www.new-domain/subdomain/ --> leads to a blank page
https://www.new-domain/subdomain/webshop --> 404 page not found
https://www.new-domain/subdomain/webshop/administrator --> 404 page not found

https://www.new-domain/subdomain/administrator --> page is shown but once I login I get redirected again to the login page with no error messages

The .htaccess has been modified to include the subdomain in RewriteBase key. I attach it to this post, in case you need to check it.

I also tried to replace all the reference to the old domain inside the SQL dump. Same results.

The only difference between the working site and the new one is that the original site lives in the domain root, and not inside a folder/subdomain. For that, I installed it inside a local Virtual Machine, creating a vitual host, but I had no better results.

I noticed that, in some cases, calling the url http://localDomain/webshop/de, this one is translated as http://localDomain/de/webshop/de, causing redirection loop.

What's wrong? ???

I need to keep Joomla v 2.5.19
My server is running PHP 7 (and it should be a problem... but is this the real problem?)

Thanks
You do not have the required permissions to view the files attached to this post.
Last edited by toivo on Tue Mar 31, 2020 11:53 pm, edited 1 time in total.
Reason: mod note: moved from 3.x

User avatar
AMurray
Joomla! Exemplar
Joomla! Exemplar
Posts: 9634
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Urls messed up after migration

Post by AMurray » Tue Mar 31, 2020 10:09 pm

Joomla 2.5 is old, out of date, and end of life - and won't run on PHP 7. You need to use PHP earlier or up to PHP 5.6 which is also EOL and obsolete.
Regards - A Murray
General Support Moderator


Locked

Return to “Installation Joomla! 2.5”