Advertisement:

Author Topic: [Solved] osclass website move to new domain, but keeps redirecting to old domain  (Read 3721 times)

mattlok

  • Newbie
  • *
  • Posts: 40
Hi everyone,

I have an issue with my osclass website.

I recently moved all my web files and database from my old domain name to a new domain name that is completely different.

However, everytime i hit the new domain, it keeps redirecting to my old domain.

Am i missing something that i need to change?  I could not find anything on the osclass admin panel.   (This is the similar issue as my wordpress which got resolved when i changed the website name in the wp admin panel).

Any help is greatly appreciated as I do not want to redo all the work i did customizing the website.
« Last Edit: March 22, 2016, 10:48:18 pm by mattlok »

teseo

  • Hero Member
  • *****
  • Posts: 6169
Hi,

Did you update your 'REL_WEB_URL' and 'WEB_PATH' on config.php? ???

Regards

mattlok

  • Newbie
  • *
  • Posts: 40
Hi Teseo,

Thank-you for the quick reply.

I did not.

So i did the changes just now, and I get an error message instead (browser error saying The Page isn't redirecting properly - Firefox message)

mattlok

  • Newbie
  • *
  • Posts: 40
Is there anything i need to change in the SQL database?

This is a brand new website, so there are no users or live ADs.

Just a lot of modifications to the WizEstate theme to make it work like a regular Classified site and not a real estate site.

mattlok

  • Newbie
  • *
  • Posts: 40
I just discovered another weird thing.

When i went to http://www.old-domain.com/oc-admin

it redirected to

http://www.new-domain.com/oc-admin (even though the config.php on the old domain has the original domain name)

I will double check everything again.

mattlok

  • Newbie
  • *
  • Posts: 40
i have double checked the config.php file in the new domain and it has the new domain in the field.

I also delete the old domain site just to eliminate any possibilities and it is still the same issue.

You can see here. 

http://www.guntradecanada.com


mattlok

  • Newbie
  • *
  • Posts: 40
So I guess the web server took a few minutes to figure some things out.

But after deleting the old domain, i can now access my new domain admin panel.

But now, i get an error 500 on my homepage.

i think my .htaccess is messed up.

teseo

  • Hero Member
  • *****
  • Posts: 6169
i think my .htaccess is messed up.

If everything's all right in config.php, that would be the next suspect. Make a copy and try emptying it.

Just to be sure that there's no problems of DNS, create a file test.php in the root folder:

Code: [Select]
<?php echo "Reached"?>
http://www.new-domain.com/test.php

Code: [Select]
This is a brand new website, so there are no users or live ADs.

Just a lot of modifications to the WizEstate theme to make it work like a regular Classified site and not a real estate site.

Then you have the alternative to install Osclass from scratch if nothing works... ??? Your theme won't be affected (although of course always store backups of everything) ;)

Regards


mattlok

  • Newbie
  • *
  • Posts: 40
Hi Teseo,

Thanks for the help.

Unfortunately it was not my DNS either.

So i had to re-install from scratch again.  But I can confirm for sure there was something wrong, either some .htaccess rewrite issue or another pointer file of some sort either coming from the database or other --- because....

After i wiped the directory (not the domain) just the directories and copied over the original files,  the installation page came up no problem and no other changes were made.

And no everything works back to factory default settings.

So maybe someone may want to look into this further because it does scare me, what if i had an active production website going and all of it was lost.

I am afraid to restore the database in case i run into the same issue.  But now i have to rebuild all the categories and upload all the banner artwork,  the customized fields, etc.



teseo

  • Hero Member
  • *****
  • Posts: 6169
I am afraid to restore the database in case i run into the same issue.  But now i have to rebuild all the categories and upload all the banner artwork,  the customized fields, etc.

No harm in trying, worst case scenario it won't work and then you'd know where the problem was (corrupted database) and re-install again. Even so, you could try to recover your categories and custom fields if those tables were still sound.

Regards

mattlok

  • Newbie
  • *
  • Posts: 40
Re: osclass website move to new domain, but keeps redirecting to old domain
« Reply #10 on: March 21, 2016, 03:32:39 am »
Hi Teseo,

Sorry it took time to respond.

I just tried to import my sql database from the OSclass panel but it fail.

So i guess the database was corrupted, but i read on my mysql when i goto to validate the table.

But I think I rather go with a clean start again, the themes is what really worried me the most and that seemed to work out.

Thanks

mattlok

  • Newbie
  • *
  • Posts: 40
Re: osclass website move to new domain, but keeps redirecting to old domain
« Reply #11 on: March 21, 2016, 06:45:12 am »
Ok, it is currently March 20, 2016 11:43pm EST

I see there are over 2,300 views on this topic within the day.

Not sure if it's bot doing this, but if you have the same issue, please report it so that the developers can fix this issue.

I am a bit fortunate as I own my own server to retrieve and stuff.  But if you are not as fortunate, you may want the OSclass backup and importer work in case you run into a situation like mine.