Skip to main content

Redirect old url path to new url path

This case for example when upgrade Drupal 9 to Drupal 10. Drupal 9 and Drupal 10 have diferent path like below:-

Drupal 9: http://example.com/content

Drupal 10: http://xeample.com/web/

When we create new Drupal 10 site and copy the content from Drupal 9 site, we have a problem when clicking url in google search (404 error)

To solve this problem:-

  • cpanel
  • Redirect
  • Type: Permenant(301)
  • Select the domain
  • Save..
  • test the old url from google search to make sure old link redirect to new link
Google AdSense
client = ca-pub-2898279488603899
slot = 9058461004
format = auto