If you move your Drupal 8 website from one sub-folder (example.com/oldsite) of your domain to another sub-folder (example.com/newsite), you will find that internal links to pages and references to images are not updated. Instead, these links and references will point to your old domain name. How to fix this issue?

enter image description here

For example, this is one of the pages after the move the site from one subfolder to another. If I click on any of this links it's taking me back to the old website.


  • 1
    This just seems like content to me - you’d have to update all that content yourself or you could script it if you know how to code.
    – Kevin
    Dec 26 '17 at 18:10
  • Hi, @Kevin you think this module could help in this case? drupal.org/project/pathologic Dec 30 '17 at 11:39

I had to update the content links manually. I learned that for to create any link for the internal content i need to use relative links instead of an absolute link.

Thank You

  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review Feb 5 '18 at 16:20
  • @Adrien I have followed what Kevin suggested in the above comment. I updated all links manually. Feb 6 '18 at 20:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.