• Hi.

    I am a complete novice with WordPress having inherited responsibility for the site. I need to migrate the site from the server it is currently on to a dedicated server. However, the IT guys are insisting I change all references/links from http://blah.blah.ac.uk to //blah.blah.ac.uk before this can be done, for security reasons. We can keep the https: protocol though.

    Any help on how this can be done as simply as possible would be very gratefully received.

Viewing 4 replies - 1 through 4 (of 4 total)
  • What are you are saying is not possible. It will have to have http:// or https:// at the beginning…so you may want to speak to them again as it looks like you may have misunderstood.

    Thread Starter Chrislancs

    (@chrislancs)

    There do seem to be plugins that do something similar (that I am not sure I can trust). https://mattgadient.com/remove-protocol/

    I know I didn’t misunderstand as I watched him remove one manually on my screen using ‘debugger’ I think.

    Hi Chrislancs,
    What the remove-protocol plugin does, is removing the http: and https: in internal links such as style sheets and javascript:

    <link rel='stylesheet' id='avia-grid-css'  href='//www.example.org/wp-content/themes/enfold/css/grid.css' type='text/css' media='all' />
    <script type='text/javascript' src='//www.example.org/wp-includes/js/jquery/jquery.js'></script>

    This way, it doesn’t matter if your website is requested using HTTP:// or https://, it’s protocol independent. See https://css-tricks.com/moving-to-https-on-wordpress/ for more information.

    Here’s an automated solution: Remove HTTP. This plugin scans your website and automatically remove both http: and https: protocols from your URL links. This will also resolve mixed content warnings.

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘removing http:’ is closed to new replies.