I have ssl enabled but Adding URL redirect showing path http instead of https in redirect. How we can changes http to https.

enter image description here

  • 2
    Only the part you enter is stored. The absolute path before the input field is to show that you should enter the relative path starting here, but it doesn't reflect the value stored in the database. Even if it has no meaning in this context, if you want to debug this, please share the full URL you have in the browser address bar while visiting this form. Do you have a direct connection between browser and web server?
    – 4uk4
    Oct 21, 2023 at 14:33
  • A classic reason this could happen is because there is a reverse proxy or load balancer that Drupal isn’t configured properly to use. See drupal.org/docs/getting-started/installing-drupal/…
    – cilefen
    Oct 22, 2023 at 11:30

1 Answer 1


The prefix displayed in front of "Path" field is automatically generated according the current HTTP request with this code :


If you try to access this page with "https" you will see "https" inside the field prefix : https://example.com/admin/config/search/redirect/add

The fact that you have "http" instead of "https" is therefore irrelevant, as the value stored is only the relative part of the URL. So whatever your environment (dev, preprod, prod) your redirection will always work.

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