• Resolved interbred_monkey

    (@interbred_monkey)


    I have, I think, a modified version of wordpress which I would like to update however if I do something might go wrong. I have therefore backed up all the files and I have created a sub domain to test the update to ensure there is nothing wrong before I do a proper update. I am however getting an issue where if I try to log into sub.domain.co.uk/wp-admin it re-directs me to domain.co.uk/wp-admin. I have checked the htaccess file and even the code in the back of wordpress but I cannot find where it is re-directing me. Is there any way around this as I do need to update quite a few things and wanted to test them first.

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • robsonfgjunior

    (@robsonfgjunior)

    You are probably using the same database that your domain.co.uk

    WordPress keeps your site url inside the wp_options table (if you chose other prefix it will be “yourprefix_options”), this is what causes the redirect.

    You need to edit 2 rows in that table in order to login sucessufuly on your testing sub domain. But if you do change that, everybody else you stop seeing the main site, and will be redirected to your testing site.

    The only way around this, is to do a new wordpress installation using other table prefix or using other database. and put the link for your subdomain.

    Thread Starter interbred_monkey

    (@interbred_monkey)

    Ahhhhhh Thanks that makes perfect sense.

    I will play around with that now.

    robsonfgjunior

    (@robsonfgjunior)

    glad to help ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Existing installation test on sub domain.’ is closed to new replies.