Disable redirection for content and link

  • Unknown's avatar

    Hello, I deploy wordpress instance to server with default settings by docker image. And I would like to use SSL.

    Request -> https -> apache2 -> http -> docker wordpress.

    How can I set making url/link with https but without redirection. Currently I get infinity loop. Is it possible to use relative links (without hostname and schema)?

    ->

    Thanks

  • Unknown's avatar

    For example

    <link rel='stylesheet' id='dashicons-css' href='http://www.my-site.com/wp-includes/css/dashicons.min.css?ver=5.3.2' type='text/css' media='all' />

    to

    <link rel='stylesheet' id='dashicons-css' href='/wp-includes/css/dashicons.min.css?ver=5.3.2' type='text/css' media='all' />

  • Unknown's avatar

    One working solution is using relative urls for all links.

  • Hi there!

    I’m afraid that your site is not hosted with WordPress.com. It is a site using the open-source WordPress software (from WordPress.org) but hosted elsewhere.

    Because WordPress.com and WordPress.org are two entirely separate entities, we cannot access files or data for sites that are hosted elsewhere, so WordPress.com staff can only assist with sites that are hosted on our servers. You can read more about the differences between WordPress.org software and WordPress.com here:

    WordPress.com vs. WordPress.org

    You can look for help at the community forums here: https://wordpress.org/support/forums/

    http://wordpress.org/support/ is also a great resource for sites using the open-source WordPress.org software.

  • The topic ‘Disable redirection for content and link’ is closed to new replies.