Tagged: x
-
AuthorPosts
-
July 29, 2016 at 12:53 pm #1109130
cleflerParticipantHi, need a solution to secure one page of my site.
I was able to do this very simply with a function in my child theme but am having the following issues…1. All links on the page are broken as is css due to the https – is there a way to fix this for one page?
2. I cannot access the page to edit with cornerstone. I only secured the page, not the admin or wp login.Thanks in advance.
July 29, 2016 at 4:02 pm #1109390
DarshanaModeratorHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
July 30, 2016 at 12:17 pm #1110257
cleflerParticipantThis reply has been marked as private.July 30, 2016 at 12:21 pm #1110259
cleflerParticipantThis reply has been marked as private.July 30, 2016 at 8:33 pm #1110541
RadModeratorHi there,
Cornerstone will not work on redirected page, nor page with multiple URL protocols.
Please change it to this,
function force_ssl() { // Specify ID of page to be viewed on SSL connection if ( is_page(14028) && !is_ssl () && ( $_GET['cornerstone'] == '1' || $_GET['cornerstone_preview'] == '1' ) ) { header('HTTP/1.1 301 Moved Permanently'); header("Location: https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]); } } add_action('template_redirect', 'force_ssl');Hope this helps.
July 30, 2016 at 9:22 pm #1110580
cleflerParticipantUnfortunately that didn’t help either issue.
Is there a way to call the header files that are needed for that page only?The page itself shows https with the green lock like it should.
July 30, 2016 at 9:31 pm #1110582
cleflerParticipantI have searched a lot about securing one page and I’m surprised there isn’t more info on the subject for businesses that don’t want to make the leap to total https but just need a checkout page secured.
Is it better to create a subdomain with a whole separate install of wordpress and X and use multisite so that the whole subdomain is secure?
July 31, 2016 at 1:46 am #1110709
RadModeratorHi there,
You could try that, but there is always some downside with that setup. Like cookies and session aren’t shared and you’ll need special plugin or customization.
But yes, you can have that setup.
Thanks!
July 31, 2016 at 3:28 am #1110777
cleflerParticipantOk thank you.
I would like to get the single page ssl working still.
Any ideas why it breaks the page.
I have tried the wp https (ssl) plugin with the same results. It is supposed to allow one page to have https. There is also a version of Really Simple ssl plugin for one page but don’t want to spend $20 if it is going to do the same thing.https://really-simple-ssl.com/knowledge-base/enabling-ssl-for-just-one-page/
July 31, 2016 at 3:37 am #1110789
RadModeratorHi there,
Not sure if you could fix it, but the reason it breaks is because the page has mixed protocols ( https and http ). The above code will only redirect the page to https, but the resources and files loaded within it, those ar still loaded as http. Let’s say you only loaded the skin through https, but not the whole content and structure.
Unfortunately, it requires full customization and there is no plugin available. You may hire a dedicated developer for that purpose.
Thanks for understanding.
July 31, 2016 at 1:06 pm #1111096
cleflerParticipantAre you sure there isn’t a work around for 1 page? It’s hard to believe there isn’t a way to do this, even if it is made without cornerstone.
July 31, 2016 at 6:58 pm #1111270
RadModeratorHi there,
There could be a workaround but too complex. And that something I can’t cover. Pages and all its resource should be loaded in https, but that code only loads the page in https. Other dependencies are still in http.
Thanks!
August 1, 2016 at 10:58 am #1112202
cleflerParticipantI found a big part of the problem and uncovered another. My cdn was enabled for the page I referenced.
It now loads https properly.The new issue is that I need to embed donation service code on the page and so need to add a script to the header.
I’ve seen a lot on this but could you provide the code (and child theme location) to put a script in the header ONLY for a specific page?
Thanks again!
August 1, 2016 at 11:15 am #1112232
DarshanaModeratorHi there,
Please follow this examples on this thread (https://community.theme.co/forums/topic/adwords-call-tracking-confused-as-heck/).
Hope that helps.
August 1, 2016 at 11:51 am #1112287
cleflerParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1109130 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
