How to dynamically change generated WP code (1 post)

  1. frontdesk
    Posted 5 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic