• Hey all. I could use some advice as to how to migrate from my local staging server to my production server. Its a rather tricky setup so bare with my as I try to describe it.

    I have my site set up and working great at the root of a staging subdomain on my personal server.
    Staging: staging.mydomain.com

    later this week I’m going to be moving it to a new production server on Rackspace which currently has no domains attached to it (is just an IP address). The clients is redirecting a folder to the new rackspace server.
    https://www.clientsdomain.com/subfolder/
    This will be where the site lives. But clientsdomain.com is a different server somewhere else in the world (not at rackspace). they will be redirecting traffic to that url to the new rackspace server.

    So my questions are:
    my working staging set up for wordpress is at the root of my personal servers subdomain. How should I set it up on rackspace? At the root of the ip address? or within a subfolder to mimic the domain setup for any relative links.

    The reason I ask is that I thought i had this set up properly, in a test I did a week or so ago on the production server, but I realized that certain admin links (for example uploading images) were still based on a root level instead of subdirectory.

    I realize this is hard to follow but I’m kinda stumped as the proper way to migrate
    staging.mydomain.com
    to
    https://www.clientsdomain.com/subfolder/
    with a redirect from another server. It seems I’m both changing the url and the folder structure at the same time. Is there a proper method for a move like this.

    Should I move my staging server to a subfolder first then change the url? Oh my head is spinning.

    any help is appreciated!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter fishnyc22

    (@fishnyc22)

    Still completely stumped here. I went ahead and attempted to move the site onto my Rackspace server into a dev folder. My client set up a dev url

    https://www.clientsdomain.com/dev/subfolder/

    Anyone visiting that url will get redirected to my server (my rackspace server simply has an ip address)

    the sites front end works with absolute urls. But where things start to fail is within wp-admin. If for example i’m on the General Settings page and click save. It saves the data and then redirects to /wp-admin/… instead of /dev/subfolder/wp-admin/. Since that folder doesn’t exist it goes to my clients 404 page.

    Also, going to
    https://www.clientsdomain.com/dev/subfolder/wp-admin ends on the clients servers 404 page but…

    https://www.clientsdomain.com/dev/subfolder/wp-admin/ (with slash) works properly.

    The way I moved the site to Rackspace from my dev folder was to change the URLs in wp-admin on my server (which was staging.mydomain.com) to
    https://www.clientsdomain.com/dev/subfolder/

    I then uploaded the files and database to rackspace and changed the wp-config file to match the rackspace db.

    This is my current htaccess file:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    I would REALLY appreciated some guidance here. supposed to be going live on Tuesday.

    thanks

    fish

    Have you tried having a domain name registered to the rackspace IP (is there a reason you can’t)? I would think you would do a normal install on rackspace and the Client Would Redirect traffic for their Domain Name to the rackspace domain (with or without the sub directory). Not sure how to do it with just an IP – if you figure it out please enlighten us.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Tricky Setup with redirect from other server. Advice Please’ is closed to new replies.