Support » Fixing WordPress » How to dynamically change generated WP code

  • My website has a single page (“mydomain.com/contact”) that requires SSL, so I use .htaccess to force HTTPS for that one page. It works fine, but some IE versions will give a warning message because of ‘nonsecure items’ being commingled in the HTML output.

    In this case the guilty items are the inline, WP-generated links for my theme, stylesheets, javascript files, etc., that were generated with a “HTTP” prefix instead of “HTTPS”.

    I figure that I could insert some “is_page” code to check if I am on my “…/contact” page, and then loop to replace the offending “HTTP” with “HTTPS”.

    Does anyone have any suggestions where I should insert that code, and what such a loop might look like?

  • The topic ‘How to dynamically change generated WP code’ is closed to new replies.