It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Link URL points to old location after import

Wipf Markus Mar 24, 2013

We are importing a lot of HTML pages from an old location into Confluence (version 4.3.5.). It works fine. Even images are migrated with this way. Just now I realized that the images are still linked to the old location. But this location we are going to stop. Is there a way to import all images into Confluence and change the URLs automatically or do we have to do it manually?

2 answers

1 accepted

0 votes
Answer accepted
Wipf Markus Mar 26, 2013

Just to change the URL isn't feasible I suppose. We're going to shut down the old location because Confluence will be the new one. In the meantime I think it's the best way to insert all images manually. A lot of work but we will handle it. Thanks for your answers.

1 vote

I believe the import would need to be done with some kind of API, or automatic script. And the change for URLs, its a bit easier you could use this SQL Query to change from one url to another:

select * from bodycontent where body like '';

And then replace it with the desired one:

update bodycontent set body = replace(body,'','');

So you'll need to do it manually, unfortunately there is no automation, but you can give it a try with the above queries.

Hope it helps, Cheers,

Daniel Borcherding Mar 25, 2013

This is a great idea, but a "napalm the field" sort of option. It may end up replacing links that you don't want replaced. How are you creating these links inside of your Comfluence? If you are exporting your space to an XML export relative page linking should be preserved. If you are absolutley linking to pages within your instnace you will need an approach like this. Please make sure you have a reliable backup of your database before attempting this mitigation.

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Confluence

6 Awesome Ways to Apply Trello, JIRA and Confluence to your Project

I attended  Atlassian Summit 2019  and learned a lot from the presenters, attendees and knowledgeable Atlassian product managers. The presentations I attended focused on applying Agile, pla...

2,424 views 11 28
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you