• Resolved JLCollier2005

    (@jlcollier2005)


    Hello all!

    I’ve asked a similar question on here before (over a year ago) and at the time I didn’t really understand what I needed and therefore didn’t get the answer I was looking for, so now that I have some more experience with WordPress and know more of what I want, I’ll ask again.

    I currently have my multisite setup like this; there are 2 established pages right now, with the main page located at jeremycollier.com and the second at kvgt.jeremycollier.com. I also have an empty website setup and ready to go at aws.jeremycollier.com.

    Step 1: What I am looking to do is duplicate EVERYTHING (theme, all content, plugins, every last detail) of the site at jeremycollier.com to aws.jeremycollier.com.

    Step 2: Have all established links from the past created on jeremycollier.com redirect to their right aws.jeremycollier.com page/post. As of this point, I would stop posting new content on jeremycollier.com (and start using aws.jeremycollier.com), so I would just need the old content to redirect to their new location.

    Step 3: Hide all the old content on jeremycollier.com behind a page that lets you select where to go, something like “Choose Your Destination” to either kvgt.jeremycollier.com or aws.jeremycollier.com (with others coming in the future).

    I am struggling how to implement step 1 and 2 properly. I think I can figure out how to do step 3 on my own, but any advice would be great, too.

    My current viewership on jeremycollier.com is pretty low (under 30 a day) so I think this is the best time to do this, since this has tripled in 2014 already as I have stepped up my content.

    Thanks for any help! It’s much appreciated.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    There are two ways.

    1) Export the posts, import them to the other site (aws), configure everything, and use .htaccess to redirect.

    2) Make a new site and swap the main site for the new site (I talk about it on page 80 or so in https://store.halfelf.org/ebooks/wordpress-multisite-110/ – pay what you want).

    Which is easier is totally subjective :/

    Thread Starter JLCollier2005

    (@jlcollier2005)

    OK, so I’ve got the site transferred (currently untransferred it temporarily)

    jeremycollier.com
    to
    aws.jeremycollier.com

    Now I have a question about editing the htaccess as I have no experience with this.

    What I’d like most is to have jeremycollier.com/blog and all links after redirect to aws.jeremycollier.com/blog and all links after that, but not thje page located at jeremycollier.com.

    Meaning that people who go to jeremycollier.com will get a different page than people who go to aws.jeremycollier.com. The current way I have the redirect (Redirect 301 / https://aws.jeremycollier.com/), it redirects jeremycollier.com to aws.jeremycollier.com/ and appears to be stuck that way. I deleted the line of code in htaccess and it kept redirecting. I’m guessing it may take time for it to update?

    Anyway, thanks and any help is much appreciated!

    Thread Starter JLCollier2005

    (@jlcollier2005)

    Since I can’t edit my last post, I’ll just update here.

    I’ve been messing with the htaccess file and ran into a roadblock.

    Question 1: Can I have multiple redirect lines within a htaccess? My webpage consists of 5 main pages (/, /blog, /writing-portfolio, /contact, and /podcast) and I need all but the root to redirect. So theoretically, can I add multiple Redirect 301’s for each of them?

    Question 2: I tried to do “Redirect 301 /blog https://aws.jeremycollier.com/blog” but all of a sudden I could not access either of the /blog pages and they just redirected to the root. What am I doing wrong? It seems like edits for the htaccess doesn’t take effect right away, so each time I change the line, I have to wait a while to see how it changed things.

    I currently commented out the redirect because it basically made my blog posts inaccessible because of what I mentioned above. If it makes a difference, I am using GoDaddy and the built in file manager.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    htaccess gets messy when you talk about subdomains.

    https://halfelf.org/2012/htaccess-anarchy/

    You can have multiple redirect lines, btu you have to write them correctly and it’s not super easy.

    Thread Starter JLCollier2005

    (@jlcollier2005)

    Thanks again, Mika! It’ll probably be the weekend before I am able to look over that link and try it out. I’ll post on here with whatever I come up with.

    Is there any other way than htaccess to forward a wordpress page? like a plugin or something? I found one that promises to do it all, but costs and I’m not really in the market to pay for anything right now.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    Thread Starter JLCollier2005

    (@jlcollier2005)

    Thank you so much! Between the links you’ve provided me and that plugin, I got things working. I still have a few pages to add, but almost all my pages except for the root are being redirected!

    I actually think I learned enough to edit the htaccess manually, but I’ll probably stick to using the plugin.

    The regex stuff is just…well crazy, but so powerful! Have you personally used that plugin?

    One last question. The basic format for my redirects that I’m using is
    /blog/(.*) => https://aws.jeremycollier.com/blog/$1

    It seems to be working perfectly. Is there anything I should know about this? any potential dangers? I have included redirects for my other sub directories in the same format also, which leaves the single page at jeremycollier.com open.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    No, I don’t use that plugin. I learned .htaccess before it existed so I just keep on keeping on.

    /blog/(.*) => https://aws.jeremycollier.com/blog/$1

    So long as that’s just running on jeremycollier.com you’re fine.

    Thread Starter JLCollier2005

    (@jlcollier2005)

    Thanks again, everything is working great!

    I will note that something weird is happening in that even new posts on aws.jeremycollier.com are appearing in the jetpack statistics for jeremycollier.com. The post itself isn’t on there, only the statistics! I’m guessing it has something to do with cloning the website, it’s not really an issue, Just thought I’d share.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Copy/Duplicate website’ is closed to new replies.