Support

Site Restoration

#13455 Restored site on new server redirects to old one

Posted in ‘Site restoration’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Environment Information

PHP version
n/a
CMS Type
Other
CMS Version
n/a
Backup Tool Version
n/a
Kickstart version
n/a

user28230
Mandatory information about my setup:

Have I read the related troubleshooter articles above before posting (which pages?)? Yes
Have I searched the tickets before posting? Yes
Have I read the documentation before posting (which pages?)? Yes
Joomla! version: 1.5.26
PHP version: 5.3
MySQL version: 5.1
Host: (optional, but it helps us help you)
Akeeba Backup version which took the backup: 3.4.3
Kickstart version used to extract the backup: Used the site transfer wizard

Description of my issue:

New restored site (to a different host) redirects to old one. Please check following example of my setup:
old site: domain.com
new site: domain.com.newhost.myserver.com

I installed a fresh .htaccess file in order to prevent the fact that I might have made any changes on the old one in the past.

On the new host I have installed in a subdirectory. I have declared that in my .htaccess file as instructed on your FAQ on the RewriteBase directive:
RewriteBase /newdir
Old site was also on a subdir but a different one.

I have changed the $live_site option in my configuration.php as instructed in your FAQ as follows:
$live_site = 'http://domain.com.newhost.myserver.com/newdir';

I do have installed on my site some third party tools that it is possible that they might interfere and redirect me:
RSFirewall
RSSEO
In order to prevent possible redirection caused by these components as you have mentioned in your FAQ, I thought of using my PHPMyAdmin and I changed the table prefix for these component's tables from jos_ to jos_bak_. I even did this for my AdminTools component (just in case...).

New restored site still redirects me to the old site...

Could you please suggest any other solution to look at? I am stuck....

nicholas
Akeeba Staff
Manager
First, try removing the .htaccess file and clear the cache, quit and restart your browser, then retry accessing your site. The stuff in bold is VERY important; browsers cache redirections and you may end up in a situation where you have fixed the cause of the problem but the browser still redirects erroneously.

If the .htaccess stuff works and you're using Admin Tools' .htaccess Maker remember to go to .htaccess Maker page and change the host names and base directory in the "System configuration" area to reflect your new site's location. After doing so you can click on "save and create .htaccess".

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

user28230
Thanks for your prompt reply!

I have found the solution and I would like to post it here for reference:
The problem was RSSEO... Even though I changed the prefix of the tables associated with RSSEO component, there was a system plugin that was doing the redirection!

Solution for redirection to old site if you have a RSSEO component installed:
Use PHPMyAdmin to edit your joomla database
Find the table jos_plugins
Locate the row: "System - Rsseo"
At the bottom on the "params" field you will see:
enablecan=1
domain=http://www.youroldsite.com
Change them into:
enablecan=0
domain=""

As Nikolas says above, clear the cache, quit and restart your browser!

nicholas
Akeeba Staff
Manager
Great! I'm glad this is fixed now :)

Nicholas K. Dionysopoulos

Lead Developer and Director

🇬🇷Greek: native 🇬🇧English: excellent 🇫🇷French: basic • 🕐 My time zone is Europe / Athens
Please keep in mind my timezone and cultural differences when reading my replies. Thank you!

Support Information

Working hours: Typically we work Monday to Friday, 9am to 7pm Cyprus timezone (EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets, but we cannot respond to them, outside of our working hours.

Support policy: We would like to kindly inform you that when using our support you have already agreed to the Support Policy which is part of our Terms of Service. Thank you for your understanding and for helping us help you!

Summer vacations: Our support will be closed for replies and new tickets from August 6th to August 21st, 2022 due to summer vacations.