Jump to content

Changing site's URL...


Jwrbloom

Recommended Posts

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.  

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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:

 

  1. Upload all the files into the new site
  2. Make a copy of the database
  3. 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.

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...