0

I have installed Drupal's Redirect module to redirect from old URL's to new ones. I have added the required redirects in my local environment, ran drush cex but can not see the redirects in the export directory. Are URL redirects are content and not config? Therefore can not be exported via configuration management and have to be added manually per environment?

3
  • Yes, redirects are "content".
    – sonfd
    Jan 21, 2021 at 12:06
  • and have to be added manually per environment? you can script a migration instead, it doesn't have to be manual
    – Clive
    Jan 21, 2021 at 12:40
  • see drupal.stackexchange.com/questions/227978/…
    – 4uk4
    Jan 21, 2021 at 13:20

1 Answer 1

1

Yes indeed. If you wish to carry the redirects around you should probably export

Or manually create the file if they are not too many.

I would recommend a csv file. You can check this for reference How do I export the list of URL alias into an excel or csv?

Then I would write a simple drupal migrate process to re import them in any environment. If you use csv file it should be quite simple for the redirects.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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