Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Jwrbloom Posted January 2, 2016 Posted January 2, 2016 I searched a little for the answer, but i only found people asking if there is a fee or changing owners. What I want to do is change the URL. I know I could just redirect users, but I'd rather have it be at the new URL. It's easier for people to bookmark and keep the branding.
wimg Posted January 3, 2016 Posted January 3, 2016 Yes, of course you can. It will only cost you money of you do this more often than once every 6 months. Changing everything else over is slightly more tricky, just check my post on moving a 3.4.x board. You need to change all references to images, internal urls, etc. Depending on your board size, it could take up to a few hors to do all this. It is a method I use to set up a copy of my live board for my test board, and with over 3.5 million posts, I manage to do this in a little over an hour if I do not get interrupted, i.e., complete copy of everything, backups, fixing the database content, etc. HTH, kind regards, Wim
Jwrbloom Posted January 3, 2016 Author Posted January 3, 2016 Are you talking running UPDATE queries in the database? So my guess on the process, separate from the URL and altering the licensing on my IPS account, I need to: Upload all the files into the new site Make a copy of the database Inside the database alter all *old URL* to *new URL* references (what you say might take over an hour) Anything else? Is there a step by step procedure printed anywhere? Right now, I only have 3,000+ posts with just 30 members.
wimg Posted January 3, 2016 Posted January 3, 2016 Actually, at that size it should you take well less than an hour :). I need 10 minutes to back up a database, and another 10 to restore it. At 3000 posts that only should take seconds to do. If you are still on 3.4.x, here is the set of steps I posted a while ago: https://community.invisionpower.com/topic/408977-moving-or-copying-an-invision-community-suite-34x-installation-to-a-new-site-or-new-path/ The principle for 4.x is the same, just that you are still on your own currently, establishing which tables and fields have to be changed. HTH, kind regards, Wim
Jwrbloom Posted January 5, 2016 Author Posted January 5, 2016 Tell me more about the reference to images. Can I just copy over the folders from my Old_URL? Everything is working except the images.
Jwrbloom Posted January 5, 2016 Author Posted January 5, 2016 I uploaded constants.php with the secret and encryption keys. All that did was allow avatars to show up. Images posted by Users in posts aren't showing up. Is there a Update query I can run on my database?
wimg Posted January 6, 2016 Posted January 6, 2016 Yes, you need to run an update query on the posts table to replace all old image url references to the new url, much like the one I posted in the referenced topic. This one: UPDATE `ibf_posts` SET post=REPLACE(post, 'http://www.old-domain.com', 'http://www.new-domain.com'); where 'old-domain.com' includes the old path you used, say 'old-path' (which often is 'forums'), so 'old-domain-com/old-path', and the new one has the new path as derived from the url, f.e., 'new-path', and hence 'new-domain/new-path'. Personally I would also add the slashes at the end, just in case. The update statement would then become something along these lines: UPDATE `ibf_posts` SET post=REPLACE(post, 'http://www.old-domain.com/old-path/', 'http://www.new-domain.com/new-path/'); Of course, you also have to replace 'ibf_posts' with the actual name of the posts table. HTH, kind regards, Wim
Recommended Posts
Archived
This topic is now archived and is closed to further replies.