Support

Site Restoration

#30775 Restored subdomain site redirects to main site

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

Latest post by on Friday, 15 February 2019 17:17 CST

MJ-ITDept
As you can see the PHP version on my account is no longer supported. I created anew account on our shared server (LiquidWeb) and had PHP 7.2.7 installed on that account.

I have backed up the site - client.mjinsurance.com and have used Kickstart to restore it to the new account. Everything went fine with the restore and the database restore as well.

The problem I am having is that whenever I try to access the restored site I get re-directed to mjinsurance.com.

To access the restored site I am going to http://67.43.1.161/~mjbox/

If I go to http://67.43.1.161/~mjbox/version.php I do NOT get re-directed.
Side note: I also see that they did NOT upgrade the PHP yet, but I will get that taken care of ASAP!

I deleted ALL of the .htaccess files in the public_html folder.

Any ideas? I assume this would not be an issue if I was restoring back to the original site client.mjinsurance.com, and that it has to do with the direct access maybe...

Respectfully,
Chuck Benslay
MJ Insurance

dlb
Chuck,

Things have changed since you posted. I'm not getting redirected from http://67.43.1.161/~mjbox/ to https://www.mjinsurance.com/ and when I tried http://67.43.1.161/~mjbox/version.php I can see that 7.2.13 is running.

The new site gives me an error message that there is no configuration file available. I'm assuming that you're working on the site. If you still need help, please let me know.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

MJ-ITDept
I am out of it now. Although the site is showing PHP 5.6.39 again! They are looking onto that.

I deleted the .htaccess file that was giving me the 500 error. I could not get any PHP error logs following your documentation online.

Thanks,
Chuck

dlb
Be careful you're not getting a cached reply, I'm still getting the 7.2.13 version.

I think WordPress requires an .htaccess file. You'll need to get that back. But they also hard code the site URL in .htaccess. You can look at it through FTP, it's just a text file. Make sure that mjinsurance.com is not in there. The restore process is supposed to fix that but it something went wrong there, that would explain some of the issues.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

MJ-ITDept
It may have been a caching issue, but it is definitely 7.2.13 now. The site is a Joomla site.

When I used the generic Joomla .htaccess file (no reference to the mjinsurance.com site) I was getting the 500 server error message. With that error, I tried some of your documentation trying to see if it was a PHP error, but got nothing.

I removed the .htaccess file and now it gets redirected to the mjinsurance.com site.

Thanks,
Chuck

dlb
I have an idea. One of the most common methods for changing PHP version is to put a command in your .htaccess file. When you go to a plain vanilla file, you lose the PHP version and your Joomla! won't run. When you have the PHP version, Joomla! runs, but something is forwarding the site to the old address.

The first thing to check is the $live_site value in configuration.php. You'll need to edit the file via FTP or your cPanel file manager. Normally, the $live_site value should be blank, just empty single quotes. If it has the old site URL there, it all makes sense.

Search the .htaccess file for the old site URL. There are a couple of ways it could be redirected from there.

Do you have an SEF component, like sh404SEF? If the data is transferred to a new server strange things sometimes happen.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

MJ-ITDept
Dale,

Thanks for your assistance.

I checked my configuration.php file and the $live_site value was blank - two single quotes.

When I use the generic Joomla .htaccess file I get a 500 server error. With no .htaccess file I get re-directed to the top level domain. This site is a sub-domain.

This site does NOT have the sh404SEF plugin. I have used that in the past. It does have a Redirect Plugin, but all of the "Expired URL's" are inactive. I'm not sure why those are there at all unless it was from a previous move that my previous boss did.

I am not sure where to add a PHP version in the generic Joomla .htaccess file, but I will look into that now.

Would any files or access help you?

Respectfully,
Chuck Benslay

dlb
There's a bunch of moving parts on this one. The URL http://67.43.1.161/~mjbox is problematic for Joomla!'s SEF. It doesn't like the tilde in the address. When you delete the .htaccess file, Redirect isn't turned on so the SEF isn't active - and it works. I got fooled when calling the version.php file worked but that was a red herring. Since we were calling a specific file, no SEF was involved.

If possible, set up a subdomain for the restored site and I think it will work without the tilde in the address.


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

MJ-ITDept
Did you get a 500 server error?

I did a completely NEW Joomla install at http://67.43.1.161/~sandboxmj/ and it works fine. I'm not sure the tilde is the culprit...

Are you saying I should do a subdomain like: client.mjinsurance.com/sandbox?

Thanks again,
Chuck

dlb
Chuck,

If you look in .htaccess Maker on the new site, do you have the right URLs in the two fields at the very bottom in the System Configuration section?


Dale L. Brackin
Support Specialist


us.gifEnglish: native


Please keep in mind my timezone and cultural differences when reading my replies. Thank you!


????
My time zone is EST (UTC -5) (click here to see my current time in Philadelphia, PA)

System Task
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.

Support Information

Working hours: We are open Monday to Friday, 9am to 7pm Cyprus timezone (EET / EEST). Support is provided by the same developers writing the software, all of which live in Europe. You can still file tickets outside of our working hours, but we cannot respond to them until we're back at the office.

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!