Results 1 to 2 of 2

Thread: New server, new domain - struggling with 301 redirects/htaccess

  1. #1
    samh is offline Here For The Peanuts
    Join Date
    Oct 2009
    Location
    London
    Posts
    193

    Icon4 New server, new domain - struggling with 301 redirects/htaccess

    Hi guys - it's been a while since I posted here. I've missed the place but a lot has happened since, it's good to read through the forums again :)

    I've run into a problem, that despite all the googling and forum reading, I'm just not able to do myself. Unfortunately!

    Here is my situation and with your help, I'm really hoping I can sort it!

    - I had multisite running on serverA on domainA
    - I've since moved to serverB but still on domainA. All is running well!
    - The people who I previously worked for now want domainA back to use for something else, so I have to change the domain (but can keep and continue to run the multisite install)
    - I know I can run a find/replace on the DB in order to change all references to domainA to domainB
    - But what I really would love some help with is setting up the 301 redirects (maybe mod_rewrite?) in order to achieve the following:.
    • Redirect all traffic from any of my current subdomains (516) to their equivalent on domainB (post > post)
    • But also leave domainA so that my previous bosses can still use it for their next venutre (ie I can't have traffic to their site, redirecting to mine!)
    I'm now running on a dedicated, managed, virtual machine and have written to them for help. However I don't think they quite understand WP like you lot!!

    Perhaps the solution is very simple? (I may be able to keep an htaccess file on domainA's new server if I ask them nicely) I just really don't know where to start!

    All help would be gratefully received, thank you :)

    Sam
    Personally: @srhas Professionally: @FootballUtd

  2. #2
    PressedIn's Avatar
    PressedIn is offline Hello World
    Join Date
    Sep 2011
    Location
    Jonhnson City, TN
    Posts
    28

    Default

    In order for the redirects to work, you'd have to use an .htaccess file to redirect the URL's from DomainA to DomainB, there wouldn't be any way around it that I know of since the traffic is coming through a specific domain.

    The downside to switching from one domain to another and having the old one being put to another use is that if the domain ever uses the same URL your redirecting, there could be an issue. It's either A) Going to use the redirect or Going to stay on that domain and result in a 404 or access the new page.

    When people switch domains, generally they keep the domain they previously used and redirect all of the traffic. Since this isn't the case here, it's going to be a little more difficult.
    Jonathan T. - PressedIn
    Managed WordPress Hosting, for Free
    .
    twitter: @pressedin - gtalk & email: hello [at] pressed.in

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •